Bbattleplan.

Build your winning
troop lineup.

Pick a target, choose your troops, get the lineup.

1 March commanders & limits

2 Target

⚔
▾
Enemy counts

Settings

3 Troops

4 Bonuses ▸

Dragon (manual)

Added to every troop while the dragon is sent. The level auto-fills the percentages from the game table; evolution caps the maximum level. Edit the percentages if needed.

Hero & captain gear (manual)

Pick the gear equipped by the hero or each captain. Only the strength/health bonuses the calculator simulates are applied; chance effects (double damage, strike two squads, block) are ignored. Set bonuses are not in the game data — add them under “Extra bonuses” if needed.

Manual bonuses (clan, VIP, anything else) (%)

Use this for the clan bonus, VIP, kingdom buffs and anything not covered above. "All" applies to every troop; "Against this target" only to the chosen enemy; class rows add to the category rows.

Research & talents

Loss optimisation only ranks lineups that destroy the target in both strike orders. Unit weights are the revive cost from the game config times the category modifiers in Target settings (0 = expendable).

MODEL

How the optimizer works

The calculator simulates a Total Battle fight and searches for the troop counts that deal the most damage. Full rules and sources are in battle-mechanics.md in the repository root; the key points:

SETUP

Load a setup

Paste a setup link from a friend (or just its #s=… part). Your current troops and bonuses are replaced.