Machinations
Community
Product
Solutions
Academia
Resources
Pricing
Company
The warrior fights the goblins attacking him one at a time. The fight takes place in turn-based mode. Each turn, the warrior and the goblin have one action, which they take at the same time. The attack deals damage to the opponent's health. Armor reduces enemy attack damage by the specified value. Every fifth turn, the warrior drinks a healing potion instead of an attack, which gives him +5 health. Warrior: 1000 health, 10 attack and 3 armor. Goblin: 20 health, 6 attack and 1 armor. How many rounds will the fight last? How many goblins can a warrior kill?