import random
run = True
list = ["stone", "paper", "scissors"]
b_of = int(input("best out of : ? "))
print ("you win with", b_of, "pnt")
sc_p = 0
sc_c = 0
while run == True:
w_num = random.choice(list)
guess = input("what's your choice")
if guess == "stone" and w_num == "paper":
sc_c = sc_c + 1
print ( "paper, oups, computer wins with", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "stone" and w_num == "stone":
print ( "stone, tie, computer has:", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "stone" and w_num == "scissors":
sc_p = sc_p + 1
print ( "scissors, you win, computer has", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "paper" and w_num == "paper":
print ( "paper, tie, computer has:", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "paper" and w_num == "stone":
sc_p = sc_p + 1
print ( "stone, you win, computer has", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "paper" and w_num == "scissors":
sc_c = sc_c + 1
print ( "scissors, oups, computer wins with", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "scissors" and w_num == "paper":
sc_p = sc_p + 1
print (" paper, you win, computer has", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "scissors" and w_num == "stone":
sc_c = sc_c + 1
print ( "stone, oups, computer wins with", sc_c, "pnt, and you have", sc_p, "pnt")
elif guess == "scissors" and w_num == "scissors":
print ( "scissors, tie, computer has:", sc_c, "pnt, and you have", sc_p, "pnt")
else:
print ("enter a good value; stone, paper of scissors. computer has", sc_c, "pnt, and you have", sc_p, "pnt")
if sc_c == b_of:
print ("computer wins with", sc_c, "pnt!!!!")
run = False
elif sc_p == b_of:
print ("you win with", sc_p, "pnt!!!!")
run = False