# Neurotoads Python RPG — занятие 22
# Практика: система сражения — тестирование

# Сценарий A
hero_hp=10; enemy_hp=6
while hero_hp>0 and enemy_hp>0:
    enemy_hp=max(0,enemy_hp-3)
    if enemy_hp>0:
        hero_hp=max(0,hero_hp-2)
print("A:",hero_hp,enemy_hp)

# Сценарий B
hero_hp=5; enemy_hp=10
while hero_hp>0 and enemy_hp>0:
    enemy_hp=max(0,enemy_hp-3)
    if enemy_hp>0:
        hero_hp=max(0,hero_hp-2)
print("B:",hero_hp,enemy_hp)
