# Neurotoads Python RPG — занятие 21
# Практика: система сражения — сборка

hero_hp=10
enemy_hp=8
hero_damage=3
enemy_damage=2
while hero_hp>0 and enemy_hp>0:
    enemy_hp=max(0,enemy_hp-hero_damage)
    print("Враг HP:",enemy_hp)
    if enemy_hp==0:
        break
    hero_hp=max(0,hero_hp-enemy_damage)
    print("Герой HP:",hero_hp)
print("Бой завершён")
