Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import time
- list = ["Rock","Paper","Scissors"]
- pInput = input("Rock, Paper, or Scissors? (1/2/3):")
- if pInput == "1":
- pInput = 1
- if pInput == "2":
- pInput = 2
- if pInput == "3":
- pInput = 3
- print("Rock...")
- time.sleep(1)
- print("Paper...")
- time.sleep(1)
- print("Scissors...")
- time.sleep(1)
- print("Shoot!")
- time.sleep(1)
- cInput = random.choice(list)
- if cInput == "Rock":
- cInput = 1
- if cInput == "Paper":
- cInput = 2
- if cInput == "Scissors":
- cInput = 3
- if cInput == 1:
- print("THE COMPUTER CHOSE ROCK")
- if cInput == 2:
- print("THE COMPUTER CHOSE PAPER")
- if cInput == 3:
- print("THE COMPUTER CHOSE SCISSORS")
- time.sleep(2)
- if pInput == 1:
- print("YOU CHOSE ROCK")
- if pInput == 2:
- print("YOU CHOSE PAPER")
- if pInput == 3:
- print("YOU CHOSE SCISSORS")
- time.sleep(2)
- if pInput == 1:
- if cInput == 1:
- print("YOU DREW!")
- if cInput == 2:
- print("YOU LOST!")
- if cInput == 3:
- print("YOU WON!")
- if pInput == 2:
- if cInput == 1:
- print("YOU WON!")
- if cInput == 2:
- print("YOU DREW!")
- if cInput == 3:
- print("YOU LOST!")
- if pInput == 3:
- if cInput == 1:
- print("YOU LOST!")
- if cInput == 2:
- print("YOU WON!")
- if cInput == 3:
- print("YOU DREW!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement