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(rules): R-END-002 states the real end-step order (#2528 item 2) (#2988)

Eyal Golane9f799c21714
diff --git a/docs/rules/mvp.md b/docs/rules/mvp.md
index 55ffc1183..5a070cb6a 100644
--- a/docs/rules/mvp.md
+++ b/docs/rules/mvp.md
@@ -482,7 +482,7 @@ The game can be lost (D-B5, decided: "Money and Food exhausted for N turns, or a
R-END-001: Money is exhausted when the debt is at or above `debt_ceiling` (Q-DEF-1, owner, 17 October 2026, #784: a debt ceiling; below it borrowing goes on as R-MONEY-003 allows). Food is exhausted when the national stock is 0 (R-FOOD-002; Q-POOL-5, "The stock stops at 0"). One of them alone ends nothing. `debt_ceiling` is IL 250m, a labelled design value (the recommended first value; the Phase 7 balance pass, PR 12, sets the final number), required in the GDD loop, a finite number >= 0.
-R-END-002: In the resolver's last step, after the objectives and the score (spec §2.3, step 11), a turn end with Money and Food both exhausted adds 1 to `ExhaustedTurns`, and any other turn end sets it back to 0. When it reaches `defeat_turns`, the game ends with `defeat_economy` and a cause in the turn's causes, under the game's end (`era`) like the MVP end. `defeat_turns` is 3, a labelled design value (Q-DEF-2, owner, 18 October 2026, #784: "3 turns"), required in the GDD loop, at least 1. The step reads the debt as it finds it: the turn's deficit is borrowed after the resolution, so it counts from the next turn's end. A defeat on the game's last turn ends it as a defeat. `ExhaustedTurns` is in the state hash only when above 0, so a run that never has both exhausted hashes as before; the legacy loop never counts.
+R-END-002: In the resolver's step 11, after the objectives and the score (spec §2.3) and before the war loss (R-END-003) and, under `gdd-0.3`, each front's quiet-turn count (R-WAR-005; the resolver runs it last, after the spec's 11 steps), a turn end with Money and Food both exhausted adds 1 to `ExhaustedTurns`, and any other turn end sets it back to 0. When it reaches `defeat_turns`, the game ends with `defeat_economy` and a cause in the turn's causes, under the game's end (`era`) like the MVP end. `defeat_turns` is 3, a labelled design value (Q-DEF-2, owner, 18 October 2026, #784: "3 turns"), required in the GDD loop, at least 1. The step reads the debt as it finds it: the turn's deficit is borrowed after the resolution, so it counts from the next turn's end. A defeat on the game's last turn ends it as a defeat. `ExhaustedTurns` is in the state hash only when above 0, so a run that never has both exhausted hashes as before; the legacy loop never counts.
R-END-003: Under gdd-0.1, when an enemy military unit (a unit with a `side` other than the player's; a halutz has no side, R-UNIT-001) holds the hex of one of the player's GDD cities (`cities.yaml`; the hex in `map/settlement_hexes.yaml`) at the end of a turn, the game ends at once with `defeat_war` and a cause in the turn's causes, under the game's end (`era`). One turn is enough, any of the GDD cities, at any time, truces included (Q-WAR-5; Q-DEF-3, owner, 17 October 2026, #784). The check runs in the resolver's last step after the economic count (R-END-002), so a turn the economic defeat also ends keeps `defeat_economy`.