Commit 54d269d8 by BellCodeEditor

save project

parent af6fbecb
Showing with 12 additions and 4 deletions
# 玩家出拳
#QWEEW
play = input("出拳")
print("play"+player)
import random
list=['時']
\ No newline at end of file
print("play"+play)
list=['石',"剪","布"]
cumputer=random.choice(list)
print("cumputer"+cumputer)
if play==cumputer:
print("平")
elif (play=="布" and cumputer=="石") or (play=="剪" and cumputer=="布") or (play=="石" and cumputer=="剪"):
print("贏")
else:
print("輸")
\ 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