Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def boss_floor():
- boss_hp = 100
- your_hp = 100
- while boss_hp > 0:
- print("Attack boss: 1.sword 2.arrow 3.magic")
- attack = input('> ')
- if attack == "sword" or "arrow" or "magic":
- boss_hp -= random.choice(attack_value)
- print("You attack the boss!")
- print(f"Boss hp: {boss_hp}n")
- print("Big boss kicks you in the nuts")
- your_hp -= random.choice(attack_value)
- print(f"hp: {your_hp}n")
- else:
- print("Input Invalid")
- print(f"Boss hp: {boss_hp}")
- if boss_hp <= 0:
- print("You win!")
- exit(0)
- if your_hp <= 0:
- print("You lose!")
- exit(0)
Add Comment
Please, Sign In to add comment