Commit a0c6f8aa by BellCodeEditor

save project

parent 59f46b58
Showing with 17 additions and 1 deletions
player=input("qingchuquan(shitou/jiandao/bu)")
print("wangjiachuquan"+player)
import random
list["jiadao","shitou","bu"]
computer=random.choice(list)
print(computer)
if player==computer:
print("pinju")
elif player=="shitou"and computer=="jiadao":
print("you win")
elif player=="jiadao"and computer=="bu":
print("you win")
elif player=="bu"and computer=="shitou":
print("you win")
else:
print("you lose")
\ 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