Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

docs: moves and attacks happen at the click since #1527 (Refs #1398) (#1632)

Eyal Golan0e4885a6f27d
diff --git a/docs/gdd/military-combat.md b/docs/gdd/military-combat.md
index e61261630..34369be52 100644
--- a/docs/gdd/military-combat.md
+++ b/docs/gdd/military-combat.md
@@ -10,7 +10,7 @@ On 15 May 1948, with the Provisional government declared, the player takes comma
- For the MVP the terrain types are the eight biomes, with the per-biome movement cost below (`Q-MOVE-1`, decided 15 October 2026 [S3]). The owner froze that catalogue for the MVP on 23 October 2026, with no new types and no terrain conversions [S16]; the location/editor update does not select new terrain types, cost values or modifiers [S1][S14].
- A unit is a formation of hundreds of fighters, never a single soldier (impact spec §2.2 [S8]; `Q-UNIT-1`, decided 15 October 2026 [S3]). A finished recruit cohort becomes one unit at its city's settlement hex. Unit types on screen are Recruit (טירון), Veteran soldier (חייל ותיק), Artillery (ארטילריה) and Armoured car (שריונית) — names approved in English and Hebrew (`Q-UI-2`, decided 15 October 2026 [S7]). A recruit promotes to veteran after a number of turns of service (labelled design value); combat does not count toward it (`Q-UNIT-2`, decided 15 October 2026 [S3]). A unit's Strength counts its population units and drives movement allowance and combat strength (`Q-UNIT-1`); where a side's historical strength is sourced, the record enters the content as one value per CONTENT_POLICY §1 (`Q-UNIT-4`, decided 15 October 2026 [S3]).
- Historical mode seeds the player's starting units from `content/map/units_1948.yaml`, each keyed to a sourced anchor (`Q-START-1`, decided 15 October 2026 [S3]). The Arab armies, the Arab Liberation Army and local Arab forces take part under their own names, with their 15 May 1948 positions seeded from the Phase five research file [S9] (`Q-START-4`, the owner's pick, 15 October 2026 [S4]; `D-G1`). Every row is fact-checked against its source before the `-shareable` tag (`Q-START-3`, decided 15 October 2026 [S3]). There are no air or naval units; where a phase needs them they are presentation-only (`Q-UNIT-5`, decided 15 October 2026 [S3]). Open mode starts with no units (`Q-START-2`, decided 15 October 2026 [S3]).
-- Orders are free and spend no Attention (`D-A6`). The standing orders are Move (תנועה), Go-to, Fortify (ביצור), Hold (החזקה) and Attack (התקפה) (`Q-UI-2`, decided 15 October 2026 [S7]; owner, 23 October 2026, #1402 and #1398: "Approve, start building"). Fortify takes one turn, costs nothing, and grants a defence bonus (value: open (owner)); the bonus is lost the moment the unit moves (`Q-HOLD-1`, decided 15 October 2026 [S7]). Hold can be given only on the player's own hex and grants no interception; its effect is a value: open (owner) (`Q-HOLD-2`, decided 15 October 2026 [S7]).
+- Orders are free and spend no Attention (`D-A6`). The orders are Move (תנועה), Go-to, Fortify (ביצור), Hold (החזקה) and Attack (התקפה) (`Q-UI-2`, decided 15 October 2026 [S7]; owner, 23 October 2026, #1402 and #1398: "Approve, start building"). Move and Attack happen the moment they are given and are final; Go-to, Fortify and Hold are standing orders (owner, 23 October 2026, #1398: "Instant, like Civ" and "No undo, like Civ"; R-TURN-004). Fortify takes one turn, costs nothing, and grants a defence bonus (value: open (owner)); the bonus is lost the moment the unit moves (`Q-HOLD-1`, decided 15 October 2026 [S7]). Hold can be given only on the player's own hex and grants no interception; its effect is a value: open (owner) (`Q-HOLD-2`, decided 15 October 2026 [S7]).
- Movement costs integer movement points per unit type against an integer cost per biome; lakes and the sea are impassable (`Q-MOVE-1`, decided 15 October 2026 [S3]). A unit with all its movement points may always enter one neighbouring land hex, whatever its cost; after spending points, it needs the full cost of the next hex (owner, 23 October 2026, #1402 and #1398: "No, strict like Civ VI" and "Approve, start building"). A built corridor road lowers its hex's movement cost, since roads mattered (`D-G2`; `Q-MOVE-2`, decided 15 October 2026 [S3]). A stacking limit caps units of a side per hex; entering a hex an enemy unit holds is an attack (`Q-MOVE-3`, decided 15 October 2026 [S3]). There is no zone of control: a unit may enter any land hex it can pay for (`Q-MOVE-4`, decided 15 October 2026 [S3]). A unit may not enter an enemy-held locality: entering would be a capture action, and the MVP records no rule for civilians under capture, so this is refused until Phase six (`Q-CIV-1`, the owner's pick, 15 October 2026 [S4]). There is no transport or embarkation (`Q-MOVE-5`, decided 15 October 2026 [S3]).
- Combat follows the GDD: a deterministic table on the strength ratio, plus one RNG draw per engagement (`Q-COMBAT-1`, decided 15 October 2026 [S3]). A unit attacks an adjacent enemy unit. A player's attack is one unit alone, fought the moment it is ordered; the enemy's attacks from several directions on one hex add their strengths; the defender's biome and fortify state modify the ratio (`Q-COMBAT-2`, decided 15 October 2026 [S3]; owner, 23 October 2026, #1402 and #1398: "Instant, like Civ", "One unit per attack, Civ" and "Approve, start building"). Outcomes take losses from the table by population units; a losing defender retreats one hex; at strength zero a unit is removed; a defender with no retreat hex surrenders; the attacker does not advance into the empty hex in the MVP (`Q-COMBAT-3`, decided 15 October 2026 [S3]). Combat acts on combatant units only: enemy units on a hex with a locality's residents may be attacked, with no effect on the residents, and artillery is not excluded (`Q-CIV-2`, the owner's pick, 15 October 2026 [S4]; R-COMBAT-005; CONTENT_POLICY §4).
- Recruits arrive only through `Train` at a military camp (`docs/gdd/training.md` [S11]). Artillery and the armoured car become `Train` tracks at a military camp: a crew of civilians, plus an Arms and Money cost as design values; event grants are left to Phase seven (`Q-ARTY-3`, decided 15 October 2026 [S3]; `D-H2`). Training a recruit costs Arms (a design value); an attack spends Arms per attacking unit, and a shortfall refuses with a reason (`D-G6`; `Q-UNIT-3` and `Q-COMBAT-4`, decided 15 October 2026 [S3]). There is no Arms upkeep; a unit costs Money upkeep each month (a design value) (`Q-UNIT-3`). A damaged formation standing in a friendly city can be refilled with trained replacements from that city's civilians, each group paying its course's Money and Arms, up to the strength the formation started with; a veteran stays a veteran, and the replacements are cancelled if the unit is lost or leaves the city [S17] (`R-TRAIN-004`).
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index c65c5bf80..8ed1ff2db 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -210,7 +210,7 @@ R-UNIT-003: A finished recruit cohort becomes exactly one Israeli infantry forma
R-UNIT-004: Each Israeli recruit formation already in play before step 4 gains one service turn; a cohort graduating in step 4 starts serving on the next turn. At `veteran_soldier_service` it becomes `veteran_soldier`, keeping id, hex, service, side, strength and standing order, with a Why cause. Veterans stop accumulating service. Combat gives no extra service, and Phase 5 adds no return to civilian life (Q-UNIT-2, Q-UNIT-6; owner, 15 October 2026). The owner-accepted initial threshold is 6 turns, a labelled design value under Q-GEN-1, not a historical period (19 October 2026, https://github.com/eyalgolan/statecraft-israel/pull/1130#issuecomment-6269103829). The loader requires it to be at least 1 and requires the Israeli veteran infantry type when recruits exist.
-R-UNIT-005: `UnitOrder(unit, send_home)` (the unit card's "Send home", #1309) is the player's order and the only way home: no automatic demobilisation happens (owner, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6334162964). It is refused, the state unchanged, with the orders' own reasons for an unknown unit, a unit with no side or an enemy unit (R-ORDER-001's wording) and "That order names no hex" when a hex is given, and with "The armistice with <front> is not signed" while the armistice on the unit's front is unsigned. A unit's front is the front of the enemy side it attacked this turn or borders; ties take the nearest enemy unit, then the lowest unit id (owner, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6340226644). A side that belongs to no front (the ALA and the local forces, Q-OBJ-1; R-POW-004's map) names none (accepted per maintainer comment, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6341877062: the ALA and the local forces belong to no front, having no armistice of their own), and a unit attacking and bordering no front-bearing enemy may be sent home once any armistice is signed, refused with "No armistice is signed" until then (accepted per maintainer comment 6341877062 on #1309: "no enemy units in play" means attacking and bordering no enemy that has a front). Taken, the order acts at once: the unit leaves the map and its strength, in population units, joins the nearest of the twelve cities as civilians without a job (owner, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6334162964: "nearest ... as unemployed civilians"), counting in the city's jobs and housing from the same turn; nearest by hex distance to the city's settlement hex, ties by the city's id (agent default - the ruling sets no tie break). The Why line states the count in people (Q-CIV-4): "Unit N is sent home: its P people are civilians in <city> now". A veteran keeps nothing (none suggested, #1309).
+R-UNIT-005: `UnitOrder(unit, send_home)` (the unit card's "Send home", #1309) is the player's order and the only way home: no automatic demobilisation happens (owner, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6334162964). It is refused, the state unchanged, with the orders' own reasons for an unknown unit, a unit with no side or an enemy unit (R-ORDER-001's wording) and "That order names no hex" when a hex is given, and with "The armistice with <front> is not signed" while the armistice on the unit's front is unsigned. A unit's front is the front of the enemy side it attacked this turn or borders; ties take the nearest enemy unit, then the lowest unit id (owner, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6340226644). A side that belongs to no front (the ALA and the local forces, Q-OBJ-1; R-POW-004's map) names none (accepted per maintainer comment, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6341877062: the ALA and the local forces belong to no front, having no armistice of their own), and a unit attacking and bordering no front-bearing enemy may be sent home once any armistice is signed, refused with "No armistice is signed" until then (accepted per maintainer comment 6341877062 on #1309: "no enemy units in play" means attacking and bordering no enemy that has a front). Taken, the order waits for End turn and can be withdrawn until then, as Send home is not an instant order (R-TURN-004); when it runs, it acts at once: the unit leaves the map and its strength, in population units, joins the nearest of the twelve cities as civilians without a job (owner, 22 October 2026, #1309: https://github.com/eyalgolan/statecraft-israel/issues/1309#issuecomment-6334162964: "nearest ... as unemployed civilians"), counting in the city's jobs and housing from the same turn; nearest by hex distance to the city's settlement hex, ties by the city's id (agent default - the ruling sets no tie break). The Why line states the count in people (Q-CIV-4): "Unit N is sent home: its P people are civilians in <city> now". A veteran keeps nothing (none suggested, #1309).
R-UNIT-006: A new Historical game places one military unit per row of `map/units_1948.yaml` that is not `hidden`, has `service: army` (the squadron and the ships stay presentation-only tokens, Q-UNIT-5), has a `strength` whose `as_of` is the start day, and has an anchor window [from, to) covering the start. The unit stands on the hex that holds the first such anchor's coordinates, by the map's projection and cube rounding (`tools/hexgrid.py`, Unity's `HexPicker`), precomputed by `tools/unit_anchor_hexes.py` into `map/unit_anchor_hexes.yaml`, which the sim reads (no projection maths in the sim, docs/determinism.md); the token may stand one hex away (`UnitPlacer`), which is presentation. Every IDF brigade is a `veteran_soldier`; an Arab force takes its side's one military type, a labelled design value of class infantry with 3 movement points. Its strength is the row's people in population units, the nearest unit with a half up and never below 1 (`people_per_unit` 1,000: Golani's 4,095 is 4, Kiryati's 2,504 is 3). The units take ids 0 upward in the file's order, before any other unit (owner, 20 October 2026, #743: "all five defaults"). The file is in the content hash (Q-START-1), and so is the hex file. The loader refuses a starting row whose anchor is off the map or not on land or has no row in the hex file, a hex row for an anchor the unit file does not have, or whose side has no single military type, naming the file and the row. A shareable build refuses while any row a unit starts from is not `fact-checked` (Q-START-3): `Statecraft.Cli --release-gate`, `Build -shareable` and `tools/package_release.py` name them.
diff --git a/docs/superpowers/plans/2026-10-23-advisors.md b/docs/superpowers/plans/2026-10-23-advisors.md
index 6d6ed3557..298c51be5 100644
--- a/docs/superpowers/plans/2026-10-23-advisors.md
+++ b/docs/superpowers/plans/2026-10-23-advisors.md
@@ -3119,6 +3119,8 @@ advisor.ben_gurion.attention_out.text: "ההוראה הזו דורשת יותר
advisor.ben_gurion.objective_done.text: "יעד הושלם, והכרטיס שלו מגיע איתו. במסך היעדים מופיע התאריך שבו השלמתם אותו לצד התאריך ההיסטורי."
```
+ Note (25 October 2026): `ben_gurion.turns` above predates #1527. When this row lands, its text (English and Hebrew) must reflect the owner's rulings on #1398: moves and attacks happen at the click ("Instant, like Civ", "No undo, like Civ"), so End turn carries out only the orders still waiting, such as Send home, and continues go-to routes.
+
- [ ] **Step 4: Run** `FILTER="AdvisorSignalsTests;AdvisorCatalogTests;SimBridgeGuardTests;SimBridgeGddTests"`; expect PASS.
- [ ] **Step 5: Commit.** `git commit -m "ui: Ben-Gurion's teaching messages (Refs #1484)"`
diff --git a/docs/superpowers/specs/2026-10-23-advisors-design.md b/docs/superpowers/specs/2026-10-23-advisors-design.md
index a3b9b7f1a..79ff5c950 100644
--- a/docs/superpowers/specs/2026-10-23-advisors-design.md
+++ b/docs/superpowers/specs/2026-10-23-advisors-design.md
@@ -214,7 +214,7 @@ the slice adds a read-only helper (in Unity, never in the sim's hash).
| Cabinet | Meyerson | R-MIN (`mvp.md:365-369`) | Exists: `SimBridge.Vacancies` (`:85`), already the Cabinet badge (`HudPresenter.cs:484`) |
| Food | Meyerson | R-FOOD (`mvp.md:321-325`) | Exists: `Food`, `FoodNeed`, `FoodUnmet` (`GameState.cs:94-98`) |
| National meters | Meyerson | R-NAT (`mvp.md:375-381`) | Exists: `Indicators` (`:33`), `ActiveSituations` (`:38`, set by `EffectsSystem.UpdateSituations`, `EffectsSystem.cs:139`) |
-| Units, movement, go-to | Dayan | R-MOVE (`mvp.md:195-213`) | The sim side exists: `Movement.NeedsOrders` (`sim/Statecraft.Sim/Movement.cs:182`), `GameSession.Committed` and `Now` (`GameSession.cs:22-26`). Needs: the Unity side, which still queues one Move per unit; the civ-movement slices (U1 to U4) add it, and the advisor reads their "Move picked" and "order committed" points |
+| Units, movement, go-to | Dayan | R-MOVE (`mvp.md:195-213`) | The sim side exists: `Movement.NeedsOrders` (`sim/Statecraft.Sim/Movement.cs:182`), `GameSession.Committed` and `Now` (`GameSession.cs:22-26`). The Unity side exists too: since #1527 (U1 to U5) a move, go-to or attack is committed at the click and End turn waits for the units that need orders; the advisor reads its "Move picked" and "order committed" points |
| Standing orders, Send home | Dayan | R-ORDER (`mvp.md:219-223`), R-UNIT-005 (`:169`) | Exists: a unit's `Order` |
| Combat | Dayan | R-COMBAT (`mvp.md:229-249`) | Exists: the turn's Why lines (`StepResult.Why`, `Commands.cs:172`; `PreviewResult.Why`, `:184`) |
| Arms | Dayan | R-ARMS (`mvp.md:331-335`) | Exists: `GameState.Arms` (`:102`) |
diff --git a/docs/units.md b/docs/units.md
index 881845e83..0255ce1a5 100644
--- a/docs/units.md
+++ b/docs/units.md
@@ -417,21 +417,22 @@ checks every anchor and logs each spot and its distance.
- A button opens the Defence screen. In the GDD loop the card also gives the Move order (GDD Phase 5 PR 15, slice 1,
#754; Q-UI-2's name, "Move" / "תנועה"). The button shows only when `Movement.Reachable` has a hex for the unit (the
token's sim unit is its row's starting force, `UnitCard.SimUnit`), and not once the game is over. Pressing it lights
- exactly those hexes (`MapScene.ShowReachable`, a band half the selection's width); a click on a lit hex queues the
- sim's `Move` through `SimBridge` and the card says the move waits for End turn; any other click, a second press, a
- turn or another selection ends the pick. The sim refuses a move that is no longer possible at End turn with its own
- reason. Slice 2 adds Fortify and Hold (Q-UI-2's "Fortify" / "ביצור", "Hold" / "החזקה"): each button shows only where
+ exactly those hexes (`MapScene.ShowReachable`, a band half the selection's width); a click on a lit hex moves the unit at once
+ through `SimBridge`, and the move is final (R-TURN-004; owner, 23 October 2026, #1398: "No undo, like Civ"); a click
+ on a farther land hex the unit has a route to gives it a go-to that continues on later turns (on touch, the first tap
+ shows the route and a second tap confirms it); any other click, a second press, a turn or another selection ends the
+ pick. The sim refuses a move that is not possible at the click, with its own reason. Slice 2 adds Fortify and Hold (Q-UI-2's "Fortify" / "ביצור", "Hold" / "החזקה"): each button shows only where
the sim's `Orders.Check` takes the order, and where it does not, the card shows the sim's reason as the sim gives it
- (in English for now, as the End turn toast does). A press queues the sim's `UnitOrder` through `SimBridge` (one standing
- order per unit: Hold replaces a queued Fortify, and either replaces a queued attack) and the card says when it takes
+ (in English for now, as the End turn toast does). A press gives the sim's `UnitOrder` through `SimBridge` at once (one standing
+ order per unit: Hold replaces a Fortify, and either replaces a go-to) and the card says when it takes
effect. Slice 3 adds Attack (Q-UI-2's "Attack" / "התקפה"): the button shows only where the sim's `Combat.Check` takes
- some unit's hex, and the sim's reasons for the enemy hexes in reach it refuses (no Arms, the attack it already has)
+ some unit's hex, and the sim's reasons for the enemy hexes in reach it refuses (no Arms, no movement points left)
show as the others do. Pressing it lights those hexes; for each the card gives the units there by name, the sim's
strength ratio (`Combat.Preview`) and its `combat_table` row's outcome bands (`Combat.Outcomes`: how many faces of the
- draw give each outcome, and the people each side loses), as Q-UI-1 decided. A click on a lit hex queues the sim's
- `UnitOrder(unit, attack, q, r)` through `SimBridge`, and the card says the attack comes at End turn, with that hex's
- odds. `Orders.Give` and `Combat.Give` run `Orders.Check` and `Combat.Check` first, so the card and End turn refuse the
- same orders for the same reasons. Tests: `UnitOrdersTests`,
+ draw give each outcome, and the people each side loses), as Q-UI-1 decided. A click on a lit hex gives the sim's
+ `UnitOrder(unit, attack, q, r)` through `SimBridge`, and the attack is fought at once (owner, 23 October 2026, #1398:
+ "Instant, like Civ"); its Why lines show as a toast. `Orders.Give` and `Combat.Give` run `Orders.Check` and
+ `Combat.Check` first, so the card and the click refuse the same orders for the same reasons. Tests: `UnitOrdersTests`,
`InfoPanelLayoutTests.TheUnitCardWithItsOrdersFitsEveryWindow`.
**The Avia S-199** (`UnitModels.AviaS199`; type `avia-s199-101sqn-1948`):