猫咪斗恶龙
import random
print("欢迎来到你**,这里是焯你*的地盘")
print("经过了九死一生,你来到了boss梅母的老巢")
hp_boss=100000
hp_player=100000
print("梅母血量:",hp_boss,",准备开始战斗!!")
while True:
input_ni=int(input("1攻击,2回血!"))
if input_ni==1:
attack_player=random.randint(100,1000)
hp_boss-=attack_player
print("你击中了梅母,打出了",attack_player,"的伤害,梅母剩余血量",hp_boss)
if hp_boss>0:
attack_boss=random.randint(100,1000)
hp_player-=attack_boss
print("报着国粹的没母发起了反击,对你造成了%s点伤害,你剩余血量%s"%
(attack_boss,attack_player))
if hp_player<=0:
print("你**的终于死了,太菜了吧,细狗!!")
break
else:
print("你居然赢了!!")
break
elif input_ni==2:
hp_player+=random.randint(200,500)
print("你剩余血量",hp_player)
else:
print("这都打不死,快输入1攻击他呀!")