Commit 7beb0bae by BellCodeEditor

auto save

parent e11c874f
Showing with 25 additions and 21 deletions
...@@ -45,24 +45,8 @@ class Player(Hero): ...@@ -45,24 +45,8 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("="*30) print(30*"-")
print(" 敌军还有五秒到达战场") print("refgehrg")
print("="*30)
while True: while True:
cz=input("Come And Fight Me! ") print(30*"-")
if cz == "1": choice=input("fdyfyt")
houyi.combat(yase) \ No newline at end of file
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
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