import hand
import random
print(‘Welcome to the game Rock Paper Scissors’)
message =input(‘Press Enter to complete or type (Help)┈➤’)
if message.capitalize() == “Help”:
print(hand.help)
message = input(“Are you ready to play? (Yes) or (No) ┈➤”).capitalize()
if message == “Yes”:
print(“Let’s start programming”)
elif message == “No”:
print(hand.help2)
else:
print(“Let’s start playing right away”)
choose = input(“ Choose your move:\n|1 ( Rock:rock: ) \n|2 ( Paper:page_facing_up: ) \n|3 ( Scissors:scissors: ) ┈➤”)
opchn = [“Rock”, “Paper”, “Scissors”]
if choose.capitalize() in opchn:
if choose.capitalize() == “Rock”:
choose=hand.r
elif choose.capitalize() == “Paper”:
choose=hand.p
elif choose.capitalize() == “Scissors”:
choose=hand.c
else:
print(“This option is not available. ”)
luck = random.choice(opchn)
if luck.capitalize() in opchn:
if luck.capitalize() == “Rock”:
luck=hand.r
elif luck.capitalize() == “Paper”:
luck=hand.p
elif luck.capitalize() == “Scissors”:
luck=hand.c
print(f"“”
You chose:
{choose}
computer chose:
{luck}
“”")
if choose == luck:
print(“It’s a draw! ”)
elif choose == hand.r and luck == hand.c or choose == hand.p and luck == hand.r or choose == hand.c and luck == hand.p:
print(“You win! Congratulations! ”)
elif choose == hand.r and luck == hand.p or choose == hand.p and luck == hand.c or choose == hand.c and luck == hand.r:
print(“You lost, unfortunately. Better luck next time!
”)
else:
print(“An error occurred. Please try again!”)