Commit 749a2bf5 by BellCodeEditor

auto save

parent a3c2d566
Showing with 5 additions and 1 deletions
......@@ -3,7 +3,7 @@ class Hero(object):
def __init__(self, name):
self.name = name
self.level = 1
self.hp = 250
self.hp = 350
self.attack = 40
self.max_hp = self.hp
self.jia=55
......@@ -24,6 +24,10 @@ class Hero(object):
info3 = enemy.name+"阵亡,游戏结束"
info = info1+info2+info3
print(info)
if enemy.name=="yase":
print("玩家胜利")
else:
print("电脑胜利")
exit()
class Player(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