Commit 2825961d by BellCodeEditor

save project

parent eb479aed
Showing with 3 additions and 2 deletions
...@@ -39,10 +39,10 @@ class Player(Hero): ...@@ -39,10 +39,10 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("_"*1000) print("_"*100)
print(" 斗战岩牛") print(" 斗战岩牛")
while True: while True:
print("_"*1000) print("_"*100)
choise=int(input("1打,2治")) choise=int(input("1打,2治"))
if choise==1: if choise==1:
houyi.combat(yase) houyi.combat(yase)
...@@ -50,6 +50,7 @@ while True: ...@@ -50,6 +50,7 @@ while True:
houyi.cure() houyi.cure()
else: else:
print("鬼") print("鬼")
continue
random.randint(1,2) random.randint(1,2)
if choise==1: if choise==1:
yase.combat(houyi) yase.combat(houyi)
......
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