Commit 65d64f9b by BellCodeEditor

auto save

parent 610e8cb2
Showing with 6 additions and 7 deletions
...@@ -40,18 +40,18 @@ class Player(Hero): ...@@ -40,18 +40,18 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("="*30) print("="*30)
print(" 敌军还有五秒到达战场") print(" 敌军还有五秒到达战场")
while True: while True:
print("="*30) print("="*30)
cz=input("1/2:") cz=input("1/2")
if cz=="1": if cz=="1":
houyi.combat(yase) houyi.combat(yase)
elif cz=="2": elif cz=="2":
houyi.cure() houyi.cure()
else: else:
print("Error 404 not found") print("Error 404 not found")
ai=randint(1,3) ai=random.randint(1,3)
if ai=="1": if ai==1:
yase.combat(houyi) yase.combat(houyi)
elif ai=="2": elif ai==2:
yase.cure() yase.cure()
\ 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