Commit 006950b2 by BellCodeEditor

save project

parent b5a45665
Showing with 19 additions and 2 deletions
......@@ -59,7 +59,7 @@ while True:
print('游戏结束')
break
else:
print('重输!')
print('rnm重输!')
continue
b=random.randint(1,3)
if b==3:
......
......@@ -50,7 +50,24 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
while True:
print('-'*30)
a=input('请输入技能:1攻击/2')
a=input('请输入技能:1攻击/2回复')
if int(a)==1:
yase.combat(yase)
elif int(a)==2:
yase.cure()
elif int(a)==q:
break
else:
print("重输")
b=random.randint(1,3)
if b==3:
yase.cure()
else:
yase.combat(yase)
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