Commit 4b5c24a8 by BellCodeEditor

save project

parent 141245bf
Showing with 18 additions and 3 deletions
...@@ -44,5 +44,20 @@ yase = Hero("垭瑟") ...@@ -44,5 +44,20 @@ yase = Hero("垭瑟")
print("-"*30) print("-"*30)
print(" 战斗开始") print(" 战斗开始")
while tuple: while tuple:
print("-"30) print("-"*30)
choie = input(请择计能 1/2) choie = input("请选择计能 1/2")
\ No newline at end of file if choice == "q":
print("游戏结束")
break
elif choie == "1":
houyi.combat(yase)
elif choie == "2":
houyi.cure()
else:
print("请重新输入1或2")
continue
num = random.randint(1,3)
if num == 1:
yase.cure()
else:
yase.combat(houyi)
\ 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