Rock Paper Scissor Game
# Rock, Paper and Scissor Game
import random
print("Welcome to Gmae.")
print("We have 1 for Rock, 2 for Paper and 3 Scissor.")
def Game():
user_input = int(input("Enter your choice: "))
if user_input == 1:
print("You chose Rock.")
elif user_input == 2:
print("You chose Paper.")
elif user_input == 3:
print("You chose Scissor.")
else:
print("Incorrect Choice.")
computer_input = random.randint(0,3)
if computer_input == 1:
print("Computer chose Rock.")
elif computer_input == 2:
print("Computer chose Paper.")
else:
print("Computer chose Scissor.")
if user_input == 1 and computer_input == 1:
print("Tie")
elif user_input == 2 and computer_input == 2:
print("Tie")
elif user_input == 3 and computer_input == 3:
print("You Tie")
elif user_input == 2 and computer_input == 1:
print("You Win")
elif user_input == 2 and computer_input == 3:
print("You Lose")
else:
print("You Win")
Game()
Log in or sign up for Devpost to join the conversation.