Commit 4b1253bc by BellCodeEditor

save project

parent 2771f1fb
Showing with 13 additions and 5 deletions
...@@ -49,11 +49,19 @@ while True: ...@@ -49,11 +49,19 @@ while True:
print("-",30) print("-",30)
choice=input("请选择一技能或二技能:") choice=input("请选择一技能或二技能:")
if choice=="q": if choice=="q":
exit() print("游戏结束")
break
elif choice=="1": elif choice=="1":
self.combat() self.combat(yase)
elif choice=="2": elif choice=="2":
self.cure() self.cure()
else: else:
print("只可选择一技能或二技能") print("只可输入1或2")
break continue
\ No newline at end of file choice1=random.randint(1,3)
if choice1=="1":
self.combat(houyi)
else:
self.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