Paper_Scissor_Rock Game

import random
user_win=0
system_win=0
option=["ROCK","PAPER","SCISSOR"]
while True:
user_input=input("Enter Rock/ Paper/ Scissor or Q to quit").upper()
if user_input=='Q':
quit()
if user_input not in ["ROCK","PAPER","SCISSOR"]:
print("Wrong entry!")
continue

ran_num=random.randint(0,2)
computer_pick=option[ran_num]
print("Computer has picked",computer_pick,".")

if user_input==computer_pick:
print("draw try again!")
elif user_input=="ROCK" and computer_pick=="SCISSOR":
print("You won!")
user_win+=1

elif user_input=="SCISSOR" and computer_pick=="PAPER":
print("You won!")
user_win+=1

elif user_input=="PAPER" and computer_pick=="ROCK":
print("You won!")
user_win+=1
else:
print("Computer won!")
system_win+=1
print("You won",user_win,"time.")
print("Computer won",system_win,"time.")
print("Goodbye")

ShareSkills: Computer Knowledge

Design a site like this with WordPress.com
Get started