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.

test(map): floor Rosh Pinna's and Yad Mordechai's houses at today's counts, 2 and 3 (refs #570, #588) (#621)

Eyal Golanedbf473c03e3
diff --git a/unity/Assets/Tests/EditMode/TownCensusTests.cs b/unity/Assets/Tests/EditMode/TownCensusTests.cs
index 5fd7b72ea..13038c6ab 100644
--- a/unity/Assets/Tests/EditMode/TownCensusTests.cs
+++ b/unity/Assets/Tests/EditMode/TownCensusTests.cs
@@ -196,6 +196,13 @@ public class TownCensusTests
["safed"] = 5, ["tel_aviv"] = 36, ["tiberias"] = 3, ["yad_mordechai"] = 0, ["zikhron_yaakov"] = 2,
};
+ /// <summary>Floors measured on today's map for the towns whose main count is 0, which floors nothing (review of #570: a
+ /// unit's clearing that thinned Rosh Pinna would pass). Main a3202ad drew no house in Rosh Pinna or Yad Mordechai. Since
+ /// round 2's small-town fallback they draw 2 and 3 (main 46ab572, 2026-10-15). The rule is MainBuildings': the count,
+ /// with no margin. The cities' floors sit 10-15% under their measure, but on 2 or 3 houses that leaves a floor of 1 or
+ /// 2, which would still let a clearing take a house. Yad Mordechai's row is the owner's decision on #621 (2026-10-15).</summary>
+ internal static readonly Dictionary<string, int> MeasuredBuildings = new Dictionary<string, int> { ["rosh_pinna"] = 2, ["yad_mordechai"] = 3 };
+
/// <summary>Review of towns round 2. No town draws fewer houses than main did (#317: on the 100x lattice a small town
/// has some 7 plots; Tiberias drew 0 against main's 3, Netanya 1 against 2, Beersheba 3 against 5, until the small-town
/// floor). The beach setback is the Mediterranean's (Degania on the Sea of Galilee), and Nahalal's ring reaches its
@@ -214,6 +221,8 @@ public class TownCensusTests
}
foreach (var id in new[] { "tiberias", "rosh_pinna" })
if (rows[id].Buildings < 1) bad.Add(id + " builds no house");
+ foreach (var kv in MeasuredBuildings)
+ if (rows[kv.Key].Buildings < kv.Value) bad.Add($"{kv.Key}: {rows[kv.Key].Buildings} houses, measured {kv.Value}");
float tallest = placed.Where(p => p.Kind == "building").Max(p => p.H);
if (tallest > 8f * 3.3f * KitScale.CityBlocks + 1f) bad.Add($"a block {tallest:0} m tall, over eight storeys");
CollectionAssert.IsEmpty(bad);