Commit a5ac6698 by BellCodeEditor

save project

parent 9a581ef4
Showing with 12 additions and 0 deletions
......@@ -7,6 +7,18 @@ class Hero(object):
self.name = name
def combat(): # 攻击
#被攻击者减血量
#信息1:‘攻击者’ 对 ‘被攻击者’ 发起攻击,
#信息2:‘被攻击者’ 减少 ‘血量’
#信息3:‘被攻击者’ 还剩 ‘多少’ 血量
#判断被攻击者血量是否大于0
#是
#输出信息:信息1 + 信息2 + 信息3
#否
#输出信息:信息1 + 被攻击者已阵亡,血量为0
#结束 exit()
???
yase = Hero("垭瑟")
......
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