I am getting some little error like sometime its being tied help me

#project 1 rock,paper,scisser
import random
def gameWin(comp,you):
if comp == you:
return None
elif comp==‘R’:
if you==‘S’:
return False
elif you==‘P’:
return True
elif comp==‘P’:
if you==‘R’:
return False
elif you==‘S’:
return True
elif comp==‘S’:
if you==‘P’:
return False
elif you==‘R’:
return True

print(“comp turns:Rock(1)paper(2)scisser(3)?”)
randNo=random.randint(1,3)
if randNo==1:
comp=‘R’
elif randNo==2:
comp=‘P’
elif randNo==3:
comp=‘S’

you=input(“your turn:Rock(R)paper(P)scisser(S)?”)
a =gameWin(comp,you)

print(f"computer choose {comp}")
print(f"you choose {you}")

if a == None:
print(“Game is tied!”)
elif a:
print(“you won the game!”)
else :
print(“you lose the game!”)

Hi, would you please edit your post. copy and paste the code part into a preformatted text.
You can find it next to the blockquote button.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.