Deterministic, fixed-timestep attack simulator. Each tick: units acquire a
target (respecting favorite-target preference), path toward it (breaking
walls that block the cheapest route), and attack; defenses fire back at the
nearest in-range troop. Every step is a pure function of state — no ambient
randomness or time — so a battle replays identically.
Deterministic, fixed-timestep attack simulator. Each tick: units acquire a target (respecting favorite-target preference), path toward it (breaking walls that block the cheapest route), and attack; defenses fire back at the nearest in-range troop. Every step is a pure function of state — no ambient randomness or time — so a battle replays identically.