Commit 7beb0bae by BellCodeEditor

auto save

parent e11c874f
Showing with 25 additions and 21 deletions
......@@ -45,24 +45,8 @@ class Player(Hero):
houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
print("="*30)
print(" 敌军还有五秒到达战场")
print("="*30)
print(30*"-")
print("refgehrg")
while True:
cz=input("Come And Fight Me! ")
if cz == "1":
houyi.combat(yase)
elif cz == "2":
houyi.cure()
elif cz == "quit":
print("hahah you damn kid")
break
else:
print("you kidding??")
continue
ai = random.randint(0,3)
print(ai)
if ai == 1:
yase.cure()
else:
yase.combat(houyi)
\ No newline at end of file
print(30*"-")
choice=input("fdyfyt")
\ No newline at end of file
import turtle
scree=turtle.Screen()
scree.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("yyggygygygygyg")
pen.hideturtle()
a = turtle.Pen()
a.fillcolor("black")
a.begin_fill()
for i in range(12):
a.forward(200)
a.left(150)
a.end_fill()
a.hideturtle()
turtle.done()
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