Commit 7e40b63c by BellCodeEditor

save project

parent 73635ade
Showing with 15 additions and 1 deletions
......@@ -53,6 +53,19 @@ print(' 开始')
while True:
print('-' * 30)
choice = input("选择(1攻击/2治疗):")
if choice == "q":
print("结束")
break
elif choice == "1":
houyi.combat(yase)
elif choice == "2":
houyi.cure()
else:
print("输入1或2")
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