Commit 108041a5 by BellCodeEditor

auto save

parent 0621fbdd
Showing with 2 additions and 19 deletions
import random
class Hero(object):
def __init__(self, name):
self.name = name
......@@ -50,21 +49,4 @@ print( "战斗开始")
while True:
print("-"*30)
choice=input("请选择技能1攻击/2治疗:")
if choice=="p":
print(退出游戏)
break
elif choice=="1":
yase.cure()
elif choice=="2":
yase.combat(houyi)
else:
continue
num=random.randint(1,3)
if num==1:
houyi.combat(yase)
else:
houyi.cure()
choice=input("请选择技能1攻击/2治疗:")
\ 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