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.
Closing in: the side that shoots further fires while the other walks from that range to its own (melee: 0) at its walking speed without hitting back; the units lost on the way are taken off before the square law. 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). Shooters stepping back as the enemy comes (kiting) and running away are not modelled; unit pages list who could kite each unit. Not modelled either: area damage, formations and abilities.