Click the buttons and make a city
# python rock paper scissors code # rock paper scissors game from random import randint while True : print(" Welcome to rock paper scissors ") choice=abs(int(input("press 1 for rock 2 for scissors and 3 for paper "))) if choice <= 3: print(" ") aichoice=randint(1,3) else: print("your number was invalid") if choice==aichoice : print("it was a draw because you chose the same as the opponent") if choice==1: if aichoice==3: print("you lost because the opponent chose paper and you chose rock") if choice==1: if aichoice==2: print("you won because the opponent chose scissors and you chose rock") if choice==2: if aichoice==1: print("you lost because the opponent chose rock and you chose scissors") if choice==2: if aichoice==3: print("you won because the opponent chose paper and you chose scissors") if choice==3: if aichoice==1: print("you won because the opponent chose rock and you chose paper") if choice==3: if aichoice==2: print("you lost because the opponent chose scissors and you chose paper")