Commit 030e2a70 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 17 additions and 0 deletions
# 玩家出拳
name = "Tony"
player = input("Rock/Paper/Scissor")
print("You choose "+ player)
import random
list = ["Rock","Paper","Scissor"]
computer = random.choice(list)
print("Computer choose "+computer)
if player in list:
if player == computer:
print("Tie!")
elif (player=="Rock" and computer=="Scissor") or (player=="Paper" and computer=="Rock") or (player=="Scissor" and computer=="Paper"):
print("You win "+name+"!")
else:
print("You lost... good try though.")
else:
print("hmm....I don't understand.")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment