Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- print("1 is rock, 2 is paper, 3 is scizors")
- i = input()
- comNum = random.randint(1,3)
- def roundx():
- if i == 1 and comNum == 1:
- print("No winner")
- elif i == 2 and comNum == 2:
- print("No winner")
- elif i == 3 and comNum == 3:
- print("No winner")
- elif i == 2 and comNum == 1:
- print("Player Wins!")
- elif i == 2 and comNum == 3:
- print("Computer Wins")
- elif i == 3 and comNum == 1:
- print("Computer Wins")
- elif i == 3 and comNum == 2:
- print("Player Wins!")
- elif i == 1 and comNum == 3:
- print("Player Wins!")
- elif i == 1 and comNum == 2:
- print("Computer Wins")
- roundx()
- print("DID/NT WORK")
- print("1 is rock, 2 is paper, 3 is scizors")
- i = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement