Commit f19287b7 by BellCodeEditor

auto save

parent 220fe62b
Showing with 18 additions and 0 deletions
# 玩家出拳
player = input("chose one(roc/papr/sicer)")
print("he choses:" + player)
import random
list=["roc","papr","sicer"]
computer=random.choice(list)
print(computer)
if player == computer:
print("tie")
elif player=="roc" and computer=="sicer":
print("playar won")
elif player=="sicer" and computer=="papr":
print("playar won")
elif player=="papr" and computer=="roc":
print("playar won")
else:
print("compater won")
\ No newline at end of file
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