Commit 62ed0c50 by BellCodeEditor

save project

parent 220fe62b
Showing with 16 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 == 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+", good job :)")
else:
print("You lost... good try though.")
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