I had tried to make rock paper scisser game and

#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)?”)
if randNo==1:
elif randNo==2:
elif randNo==3:

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!”)

but some error like game being tieing please help it will be appriceted

Hi @rushirajsinhzala16 !

Welcome to the forum!

There are developers on the forum that know C++ that could probably assist you with your question. You will need to provide so more information.

First off, you are going to need to post your code. If it is around 20 lines of code then you can post it here on the forum. Otherwise, I would suggest sharing a github repo for the project.

Secondly, you are going to have to be more specific about what you need help with.

You are going to have to explain what the project is supposed to do and what issues you are having.

What error messages are you having when you try to compile your code?

Or maybe you are not having any compile issues but you want your code to do this and right now it is doing this.

The more specific you can be the better.

1 Like

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