Commit 65d64f9b by BellCodeEditor

auto save

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