Commit c4fc59d7 by BellCodeEditor

save project

parent beb166ed
Showing with 8 additions and 1 deletions
import random import random
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
...@@ -66,6 +67,11 @@ while True: ...@@ -66,6 +67,11 @@ while True:
yase.cure() yase.cure()
else: else:
yase.combat(houyi) yase.combat(houyi)
houyi = Player("射手""后羿")
yase = Hero("亚瑟")
print(' 战斗开始')
while True:
print("-" * 30)
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