Commit ca300a2e by BellCodeEditor

save project

parent 640dc4ca
Showing with 27 additions and 14 deletions
name=input("")
\ No newline at end of file
import turtle life1=2
pen=turtle.pen() life2=2
pen.fill_color("red") while True:
pen.begin_fill() a=input("请出拳:")
pen.speed(1000) print("玩家出拳:"+a)
for i in range(5): import random
pen.forward(144) s=["剪刀","石头","布"]
pen.left(144) lll=random.choice(s)
pen.end_fill() print("电脑出拳:"+lll)
pen.hideturtle() if a not in s:
turtle.done() life1=life1+1
\ No newline at end of file print("SB")
if a==lll:
print("平局")
elif (a=="剪刀" and lll=="布")or(a=="石头" and lll=="剪刀")or(a=="石头" and lll=="剪刀"):
life2=life2-1
print("牛逼",life1,life2)
else:
life1=life1-1
print("你没了",life1,life2)
if life1==0:
print("哈哈哈,SB一个")
break
if life2==0:
print("你牛逼大了")
break
\ 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