Commit 89337613 by BellCodeEditor

save project

parent 5b3b531c
Showing with 18 additions and 2 deletions
...@@ -40,6 +40,22 @@ houyi = Player("射手", "后羿") ...@@ -40,6 +40,22 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("-"*30) print("-"*30)
print("战斗开始") print("战斗开始")
import random
while True: while True:
print("-"*30) print("-"*30)
choice=input("请选择你要使用的技能(1攻击/2治疗)") choice=input("请选择你要使用的技能(1攻击/2治疗)")
\ No newline at end of file if choice == "1":
houyi.combat(yase)
elif choice == "2":
houyi.cure()
elif choice == "q":
print("游戏结束")
break
else:
print("请输入1或者2之中的数字哦")
num=random.randint(1,3)
if num==1:
yase.combat(houyi)
else:
yase.cure()
\ 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