Tower Defense — both sides decide, out loud

Continuous decision-making at volume: enemies run the rule ladder every half-second (advance, divert to the alternate route once pressure unlocks it, retreat, regroup, sabotage towers), while every tower scores six targeting policies per shot and hands genuine near-ties to the engine — the whole snapshot travels in the question. The decisions/s counter keeps the volume honest, runs are seeded and deterministic, and you can click any tower to take its policy away from the ladder and see the outcome move.

What decides what

  • Enemies decide by rules, labelled. Every half-second each enemy reads its situation (hp, tower pressure, allies, route) and picks: advance, divert, retreat, regroup — or, for saboteurs, attack a tower. Rules land on the "rule" rung and say so.
  • Towers decide by scored candidates. Nearest, weakest, strongest, fastest, save-special, use-special — each scored on the frame-tick snapshot (threat-weighted damage, overkill, blast value). Policies that pick the same target collapse into one action; no fake questions.
  • Near-ties go to the engine. When the top two actions land within 0.12 value, the full wire contract leaves the tab-shaped snapshot in the state, the live policies as candidates. The engine's pick is honored only if it names a real candidate.
  • Determinism is test-pinned. Same seed, same run — waves, diversions, and every tower decision replay exactly. The four spec tests (clearable by the default loadout, policy changes change outcomes, no divert without the route, determinism) run in CI.

Honest edges

  • The engine is one voice among many: roughly one tower shot in fifteen is a near-tie. The rest are rules and say so on the rung — no engine worship, no hidden coin flips.
  • The alternate route is a real cost: it is 1.5× longer than the main road. Enemies pay in travel time, and with the route off, diversion simply never happens.
  • Take over a tower and its decisions stop being ladder decisions — the stats overlay counts exactly how many you took over.
  • The scoreboard is session-only: close the tab and it is gone. Nothing leaves this page.