AoE3: DE 100.19.18309
Unit vs unit calculator
Pick two units, add their upgrades (Veteran is +20% hit points and damage, Guard +30%, Imperial +50% for most units) and how many of each; the calculator works out every hit from the game files and the fight by Lanchester's square law.
Loading units…
How this is worked out
One hit = damage × (1 + damage upgrade) × every multiplier matching the target's types × (1 − the target's resist to that damage type). Two ranged units trade shots; against a unit with no ranged attack the better of ranged and melee is used. Damage per second = hit ÷ seconds between attacks.
Armies: A wins when damage per second × hit points × count² is larger (square law); the winner keeps √(its count² − the loser's count² × the loser's strength ÷ its own). Not modelled: range and speed, area damage, formations and abilities.