Commit 2f9c7b8c by BellCodeEditor

auto save

parent e52696af
Showing with 14 additions and 2 deletions
import random
class Hero(object):
def __init__(self, name):
self.name = name
......@@ -53,8 +54,19 @@ print(" 开始游戏")
print("-"*50)
while True:
input("请使用攻击技能1,回复技能2")
print("-"*50)
choice=input("请使用攻击技能1,回复技能2:")
if choice=="1":
houyi.combat(yase)
print("向对方攻击")
elif choice=="2":
print("使用恢复")
houyi.cure()
elif choice=="q":
exit()
else:
print("输入有误,重新输入:")
random.
......
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