Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # rock paper scissors
- import random
- rob = random.randint(1,3)
- print("Computer has chosen its decision\n")
- user = int(input("Pick: Rock(1),Paper(2) or Scissors(3)\n"))
- if rob == 1:
- print("Robo pics Rock")
- elif rob == 2:
- print("Robo pics Paper")
- else:
- print("Robot pics Scissors")
- if user == 1 and rob == 2 or user == 2 and rob == 3 or user == 3 and rob == 1:
- print("You lose!")
- elif user == rob:
- print("Its a draw!")
- else:
- print("You win!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement