A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
map: Haifa's Carmeli clearing stays beside the town's core (refs #588, Haifa half) (#1090)
Berif7926000b657
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 941ca5958..264934413 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -124,6 +124,13 @@ checks this (see `CONTRIBUTING.md`).- The Cabinet, Budget, Defence, Why, How to play and Settings screens each gain an X in the header that closesthem (the same close as Escape): a phone has no Escape key, and re-tapping the lit rail button was the only wayout (v0.1.1 playtest feedback).+- The Carmeli Brigade stands at Haifa, its sector's seat, from 15 May to 9 July 1948 (before its Operation Brosh+ window), in the town on a clearing kept free of the kits' buildings. Haifa and Tel Aviv each get a budget of one unit+ clearing, and Haifa's census floors drop by what Carmeli's clearing takes: 11 houses and 6.8 / 3.9 points of cover+ (owner, #588). The 8th Brigade stays hidden: Tel Aviv's clearing is Kiryati's, and every spot within 7.4 km of Tel+ Litvinsky also cuts into another town or village. A unit clearing's ground counts as if it still held plots when a+ whole-town model finds its town's core (`TownLandmarks.CoreOf`; owner, #588: "Clearing doesn't move the core"), so+ Haifa's model stays on land beside Carmeli's clearing.- Map: a city shows it can be clicked. With the mouse over one of its hexes or its name, the city's name lights up inivory and the browser's pointer becomes a hand; a click on the name opens the city panel, as a click on its hex does,in English and Hebrew and at every zoom (Fixes #1063).diff --git a/content/map/units_1948.yaml b/content/map/units_1948.yamlindex cee57bc13..8c3f31c67 100644--- a/content/map/units_1948.yaml+++ b/content/map/units_1948.yaml@@ -141,6 +141,21 @@ units:# Ben-Gurion's diary, 11 July 1948, the cannon distribution, 65 mm guns on every front, as the research note gives it: 4+4 opposite the Syrian bridgehead, 4 in the Acre sector, 4+4 Danny, 4+4 Harel, 3+3+4 Givati, 4 Negev (research_notes/M4 war mode/war-1948.md, section 8, Q-ART-2, read 2026-10-16).- {url: 'https://bengurionarchive.bgu.ac.il/en/node/14176', checked: '2026-10-16'}anchors:+ - place: Haifa+ lon: 34.99917+ lat: 32.81917+ from: '1948-05-15'+ since: February 1948+ to: '1948-07-09'+ end_basis: source+ end_note: "The Haganah Heritage lexicon (Brigade 2 Carmeli) has the brigade's headquarters and most of its forces in Operation Brosh against the Syrian bridgehead in July 1948; he.wiki Operation Brosh: from 9 July 1948. The next window, at Mishmar HaYarden, starts that day."+ note: "The sector's seat, not a dated position: he.wiki gives the brigade's area as the Haifa area and the Zevulun district (Haifa and the Western Galilee) from the split of February 1948, and the Haganah Heritage lexicon has it organised in the Haifa area and the Western Galilee and operating in Haifa; no source found names its headquarters. In mid-May the lexicon has the brigade in the Western Galilee and at Acre, then at Jenin (2-4 June). The token stands in the town on Haifa's one unit clearing (#588)."+ sources:+ - {url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%AA_%D7%9B%D7%A8%D7%9E%D7%9C%D7%99', checked: '2026-10-15'}+ # Organisation of Haganah Heritage, Lexicon, "Brigade 2 Carmeli": organised in the Haifa area and the Western Galilee, operated in Haifa; in Operation Brosh (July 1948) at the Syrian bridgehead.+ - {url: 'https://hahagana.org.il/lexicon/lexiconpage/?itemId=47620', checked: '2026-10-15'}+ - {url: 'https://he.wikipedia.org/wiki/%D7%9E%D7%91%D7%A6%D7%A2_%D7%91%D7%A8%D7%95%D7%A9', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Haifa', checked: '2026-10-15'}- place: Facing the Syrian bridgehead at Mishmar HaYardenlon: 35.59972lat: 33.00278@@ -149,7 +164,7 @@ units:to: '1948-07-19'end_basis: sourceend_note: "he.wiki Operation Brosh: the operation ran to 18 July 1948, when the second truce began at 19:00 with the front line unchanged. No source found places the brigade on this line between the truce and Operation Hiram (he.wiki Operation Hiram, at the end of October, names places for Carmeli, Manara and Misgav Am, where its main task was to block a possible Syrian attack, but no source dates the brigade at Mishmar HaYarden after Brosh), so the window ends with the operation, as Yiftach's ends with Dani."- note: "The Haganah Heritage lexicon (Brigade 2 Carmeli): the brigade's headquarters and most of its forces operated in Operation Brosh (July 1948) against the Syrian bridgehead at Mishmar HaYarden. he.wiki Operation Brosh: 9-18 July 1948, commanded by the Carmeli commander with the brigade's 22nd, 23rd and 24th battalions; the operation's headquarters was at the Hotel Shulamit in Rosh Pinna; the bridgehead was not taken. The Syrians held the moshava from 10 June 1948, so the token stands facing it on the Israeli side, by Rosh Pinna. Not drawn before 9 July: its sector place, Haifa, has no clear spot outside the town on the map (coordinator's option (d), 2026-10-15)."+ note: "The Haganah Heritage lexicon (Brigade 2 Carmeli): the brigade's headquarters and most of its forces operated in Operation Brosh (July 1948) against the Syrian bridgehead at Mishmar HaYarden. he.wiki Operation Brosh: 9-18 July 1948, commanded by the Carmeli commander with the brigade's 22nd, 23rd and 24th battalions; the operation's headquarters was at the Hotel Shulamit in Rosh Pinna; the bridgehead was not taken. The Syrians held the moshava from 10 June 1948, so the token stands facing it on the Israeli side, by Rosh Pinna. Before 9 July the token stands at its sector seat, Haifa."toward:place: Rosh Pinnalon: 35.54222@@ -168,8 +183,6 @@ units:sources:- {url: 'https://en.wikipedia.org/wiki/Carmeli_Brigade', checked: '2026-10-11'}- {url: 'https://en.wikipedia.org/wiki/Golani_Brigade', checked: '2026-10-11'}- # The sector's seat, Haifa (he.wiki Carmeli; the lexicon: organised in the Haifa area and the Western Galilee, operated in Haifa). Not a dated position: in mid-May the lexicon has the brigade in the Western Galilee and at Acre, then at Jenin (2-4 June). Not drawn there (no clear spot outside the town, #588).- - {url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%AA_%D7%9B%D7%A8%D7%9E%D7%9C%D7%99', checked: '2026-10-15'}- {url: 'https://en.wikipedia.org/wiki/Operation_Ben-Ami', checked: '2026-10-15'}- id: alexandroniname: Alexandroni Brigadediff --git a/docs/units.md b/docs/units.mdindex f924464ca..4173ed811 100644--- a/docs/units.md+++ b/docs/units.md@@ -90,7 +90,7 @@ The owner ruled:3. 101 Squadron shows an Avia S-199 until the Spitfire's sourced date, then the Spitfire.4. The four brigades with no sourced position (Carmeli, Alexandroni, the 8th, Oded) are listed in the file and hidden.- 2026-10-15 (refs #385): Carmeli (from 9 July 1948; coordinator's option (d)) and Alexandroni now have sourced- positions (below) and are shown. The 8th+ positions (below) and are shown. Since #588 (owner, 18 October 2026) Carmeli also stands at Haifa before that. The 8this sourced at Tel Litvinsky (24 May to 9 July 1948; owner, 2026-10-15: "Accept, verify later") but stays hidden:the map has no clear spot for it on its own side within one hex of the camp. Oded stays hidden (its sourcesconflict and name no place).@@ -226,7 +226,7 @@ own root rotation kept (the FBX axis turn, -90 degrees about X), so the camera's| Unit | Positions (dated, from the sources) | Ends ||---|---|---|| Golani (1st) | Yavne'el (since February 1948); the Julis camp from December 1948 | December 1948 (source); 24 Feb 1949 (Egypt) |-| Carmeli (2nd) | Facing the Syrian bridgehead at Mishmar HaYarden, on the Rosh Pinna side, 9-18 July 1948 (Operation Brosh). Not drawn at Haifa, its sector's seat: no clear spot outside the town (#588) | 19 Jul 1948, the second truce (source) |+| Carmeli (2nd) | Haifa, its sector's seat (since February 1948), in the town on Haifa's one unit clearing (#588); facing the Syrian bridgehead at Mishmar HaYarden, on the Rosh Pinna side, 9-18 July 1948 (Operation Brosh) | 9 Jul 1948, Operation Brosh (source); 19 Jul 1948, the second truce (source) || Alexandroni (3rd) | Netanya, its headquarters at Camp Dora (since March 1948) | November 1948, the move to the Faluja pocket (source) || Kiryati (4th) | Tel Aviv (since February 1948) | 3 Apr 1949 (Jordan) || Givati (5th) | Gedera, one of the three places its sector names (no start given) | November 1948, the move to the centre (source) |@@ -263,8 +263,9 @@ The candidates are tried in three rounds:3. If the whole neighbourhood is town, the compact point that reaches least deep into it (then the nearest; with a`toward` point, the nearest to that). The map then keeps a clearing of the compact ring's radius free of the kits'buildings and trees there (`MapScene.UnitClearings`, computed before the kits from the same data), so the token never- stands in a building. The clearing may cut only into the anchor's own town, never a neighbour's. Kiryati (Tel Aviv)- and Etzioni (West Jerusalem) stand this way.+ stands in a building. The clearing may cut only into the anchor's own town, never a neighbour's. Kiryati (Tel Aviv),+ Carmeli (Haifa) and Etzioni (West Jerusalem) stand this way. Haifa and Tel Aviv each have a budget of one such+ clearing, and their census floors are measured with it (#588, owner, 18 October 2026; `TownCensusTests`).A spot is clear when:- the ring's disc stays off every settlement footprint (the kits' discs, times 1.1);@@ -373,7 +374,7 @@ headless `?vprofile` on the WebGL build of 943184c, 1920x1080 at DPR 1, 2026-10-archives.- No dated front line: tokens keep within one hex of their sourced place, and three anchors carry a sourced `toward`point to stay on their own side (review MF1).-- **Kit baseline break:** from 943184c the kits keep the unit clearings in Tel Aviv and West Jerusalem, in plain+- **Kit baseline break:** from 943184c the kits keep the unit clearings in Tel Aviv and West Jerusalem (and in Haifa since #588), in plaincheckpoints too. So kit metrics before and after that commit are not comparable; this is marked in the art log.- Merges still to come (review I7). With promo-borderdata, the info panel's region label must be cleared when a unitcard shows. With promo-screens, the wide-screen click guard must cover `ShowUnit` and `UnitLayer.Select` as well asdiff --git a/unity/Assets/Scripts/Map/Collection/TownLandmarks.cs b/unity/Assets/Scripts/Map/Collection/TownLandmarks.csindex f73ac4a94..1a632dbc5 100644--- a/unity/Assets/Scripts/Map/Collection/TownLandmarks.cs+++ b/unity/Assets/Scripts/Map/Collection/TownLandmarks.cs@@ -172,15 +172,39 @@ namespace Statecraft.Game.Map.Collection/// (<paramref name="plots"/>) nearest its centre (<paramref name="centre"/>), and the radius that holds that share round/// it, no more than its kit footprint (<paramref name="footprint"/>), under <see cref="NeighbourShare"/> of the distance/// to the nearest of <paramref name="others"/>, then pulled in (by tenths, to a third of where it started) while more- /// than <see cref="MaxWaterShare"/> of the disc is water. With fewer than five plots: the centre and the footprint,- /// under the same two limits.</summary>- public static (Vector2 centre, float radius) CoreOf(Vector2 centre, float footprint, IReadOnlyList<Vector2> plots, IEnumerable<Vector2> others,- Func<float, float, bool> water)+ /// than <see cref="MaxWaterShare"/> of the disc is water. With fewer than five plots (counting the clearings'): the centre+ /// and the footprint, under the same two limits. A unit clearing in the town (<paramref name="clearings"/>, MapScene.UnitClearings) counts+ /// as if it still held plots (#588, owner, 18 October 2026: "Clearing doesn't move the core"), so a token's clearing+ /// does not pull the core away from it (Carmeli's put Haifa's model in the bay).</summary>+ public static (Vector2 centre, float radius) CoreOf(Vector2 centre, float footprint, IReadOnlyList<Vector2> plots,+ IEnumerable<(Vector2 centre, float radius)> clearings, IEnumerable<Vector2> others, Func<float, float, bool> water){Vector2 c = centre; float r = footprint;- if (plots.Count >= 5)+ // The clearings' ground as plots: a grid at the town's own plot spacing (the median distance from a plot to its+ // nearest; at least a twentieth of the clearing's radius), over each clearing that is in the town as the unit+ // placer counts it (UnitGround.FootprintMargin).+ var counted = new List<Vector2>(plots);+ var inTown = clearings.Where(cl => (cl.centre - centre).magnitude < footprint * Units.UnitGround.FootprintMargin).ToList();+ if (inTown.Count > 0 && plots.Count >= 2){- var near = plots.OrderBy(p => (p - centre).sqrMagnitude).Take(Mathf.Max(5, Mathf.CeilToInt(CoreShare * plots.Count))).ToList();+ float step = Enumerable.Range(0, plots.Count)+ .Select(i => Enumerable.Range(0, plots.Count).Where(j => j != i).Min(j => (plots[j] - plots[i]).magnitude))+ .OrderBy(x => x).ElementAt(plots.Count / 2);+ foreach (var (cc, cr) in inTown)+ {+ float st = Mathf.Max(step, cr / 20f);+ int n = Mathf.FloorToInt(cr / st);+ for (int i = -n; i <= n; i++)+ for (int k = -n; k <= n; k++)+ {+ var q = cc + new Vector2(i, k) * st;+ if ((q - cc).magnitude < cr) counted.Add(q);+ }+ }+ }+ if (counted.Count >= 5)+ {+ var near = counted.OrderBy(p => (p - centre).sqrMagnitude).Take(Mathf.Max(5, Mathf.CeilToInt(CoreShare * counted.Count))).ToList();c = near.Aggregate(Vector2.zero, (a, p) => a + p) / near.Count;var d = near.Select(p => (p - c).magnitude).OrderBy(x => x).ToList();r = Mathf.Min(footprint, d[d.Count - 1]);@@ -367,7 +391,7 @@ namespace Statecraft.Game.Map.Collectionvar plots = layer == null ? (IReadOnlyList<Vector2>)Array.Empty<Vector2>(): layer.InstancesOf(w.Key).Select(m => m.Plot).Distinct().ToList();var others = wants.Where(o => o.OnTown && o.Key != w.Key).Select(o => o.At).Concat(townCentres.Where(o => o.id != w.Key).Select(o => o.c));- var (core, rad) = CoreOf(w.At, w.Radius, plots, others, ground.Water);+ var (core, rad) = CoreOf(w.At, w.Radius, plots, map.UnitClearings, others, ground.Water);at = core; edge = 2f * rad;(normal, baseY) = SeatOn(at, rad, ground.Y, ground.Water);}diff --git a/unity/Assets/Tests/EditMode/TownCensusTests.cs b/unity/Assets/Tests/EditMode/TownCensusTests.csindex 6ceddeaf8..535a9b473 100644--- a/unity/Assets/Tests/EditMode/TownCensusTests.cs+++ b/unity/Assets/Tests/EditMode/TownCensusTests.cs@@ -300,10 +300,13 @@ public class TownCensusTests/// that thins a city back to round 1's sparse handful fails here; the cover floors are about 10% under the measure./// Tel Aviv's row was #318's (owner ruling 2026-10-12: 55 / 25.2% / 25.6% drawn, core floor 25%). Since the owner's ruling on/// #652 (2026-10-15, "Lower floor to ~30, wider blocks") it is <see cref="TelAvivFloor"/>'s: fewer, larger blocks with- /// open plots between them; its localities' landmarks still stand at its street crossings.</summary>+ /// open plots between them; its localities' landmarks still stand at its street crossings. Haifa's row drops by its one+ /// unit clearing (<see cref="UnitClearingBudget"/>, #588): Carmeli's clearing took 11 houses and 6.8 / 3.9 points of+ /// cover (main 0011470c draws 46 / 21.4% / 20.6%, with the clearing 35 / 14.6% / 16.7%), so 40 / 19% / 18.5% became+ /// 29 / 12.2% / 14.6%.</summary>internal static readonly Dictionary<string, (int buildings, float all, float core)> Floors = new Dictionary<string, (int, float, float)>{- ["tel_aviv"] = (TelAvivFloor, 0.245f, 0.21f), ["jaffa"] = (28, 0.29f, 0.285f), ["haifa"] = (40, 0.19f, 0.185f), ["jerusalem"] = (95, 0.20f, 0.22f),+ ["tel_aviv"] = (TelAvivFloor, 0.245f, 0.21f), ["jaffa"] = (28, 0.29f, 0.285f), ["haifa"] = (29, 0.122f, 0.146f), ["jerusalem"] = (95, 0.20f, 0.22f),};/// <summary>Tel Aviv's building floor here and in MainBuildings, and its cover floors in Floors (was 50 / 22.5% / 25%@@ -405,8 +408,32 @@ public class TownCensusTests/// <summary>Bands for TelAvivsPlasterIsWarmCreamAndStillWhiterThanJaffa, in census mean-wall terms. Main: Tel Aviv/// (0.93, 0.93, 0.92), r - g 0.000; Jaffa (0.76, 0.69, 0.60).</summary>const float CreamRedOverGreen = 0.04f, CreamRedOverBlue = 0.08f, WhiteOverJaffa = 0.12f, CreamOfJaffasTint = 0.85f;- /// <summary>Haifa's census mean wall on main (2927defb), which #658 must not move.</summary>- static readonly Color HaifaMeanWall = new Color(0.8380f, 0.7945f, 0.7255f);+ /// <summary>Haifa's census mean wall on main (2927defb), which #658 must not move. #588 moved it: Carmeli's clearing takes+ /// 11 of Haifa's houses (was 0.8380, 0.7945, 0.7255).</summary>+ static readonly Color HaifaMeanWall = new Color(0.8112f, 0.7568f, 0.6747f);++ /// <summary>#588 (owner, 18 October 2026, "Beri's defaults"): Haifa and Tel Aviv each have a budget of one unit's+ /// clearing (a token standing in the town, MapScene.UnitClearings), and their floors in <see cref="Floors"/> are+ /// measured with it: Carmeli in Haifa, Kiryati in Tel Aviv. A second clearing in either town would thin it under its+ /// measure; none would leave its floor loose. The placer does not count the budget: this test is the guard. Tel Aviv's+ /// floor (<see cref="TelAvivFloor"/>, #652) was measured with Kiryati's clearing already in place, so its one clearing+ /// takes nothing more and the floor stays.</summary>+ internal static readonly Dictionary<string, int> UnitClearingBudget = new Dictionary<string, int> { ["haifa"] = 1, ["tel_aviv"] = 1 };++ [Test]+ public void HaifaAndTelAvivSpendTheirUnitClearingBudget()+ {+ var map = OpenMap();+ foreach (var kv in UnitClearingBudget)+ {+ var (fc, fr, _) = map.KitFootprints.Single(f => f.id == kv.Key);+ var inTown = map.UnitClearings.Where(c => (c.centre - fc).magnitude < fr * Statecraft.Game.Map.Units.UnitGround.FootprintMargin).ToList();+ TestContext.WriteLine($"{kv.Key}: {inTown.Count} unit clearings {string.Join(" ", inTown.Select(c => c.centre))}");+ Assert.AreEqual(kv.Value, inTown.Count, kv.Key + ": unit clearings in the town");+ var own = map.UnitSpots.Where(s => s.Value.InTown && inTown.Any(c => c.centre == new Vector2((float)s.Value.X, (float)s.Value.Z))).Select(s => s.Key.Place);+ CollectionAssert.AreEquivalent(new[] { kv.Key == "haifa" ? "Haifa" : "Tel Aviv" }, own, kv.Key + ": the clearing its floors were measured with");+ }+ }[Test]public void TheCitiesCoverTheirGround()diff --git a/unity/Assets/Tests/EditMode/TownLandmarksTests.cs b/unity/Assets/Tests/EditMode/TownLandmarksTests.csindex d42b586d6..5a02e1c27 100644--- a/unity/Assets/Tests/EditMode/TownLandmarksTests.cs+++ b/unity/Assets/Tests/EditMode/TownLandmarksTests.cs@@ -335,6 +335,30 @@ public class TownLandmarksTestsAssert.Greater(Vector3.Angle(Vector3.up, t.Seats["degania_alef"].Normal), 0.5f, "Degania Alef leans with its slope");}+ /// <summary>#588 (owner, 18 October 2026, option (a), "Clearing doesn't move the core"): a unit clearing's ground in a+ /// town counts as if it still held plots, so the token's clearing does not pull the whole-town model's core away from+ /// it (Carmeli's in Haifa pushed Haifa's model into the bay). A town's plots on a 100 m grid with a hole cut where a+ /// clearing stands keep the core of the whole grid; without the clearing the core moves off it.</summary>+ [Test]+ public void AUnitClearingDoesNotMoveATownsCore()+ {+ var centre = new Vector2(10000f, 10000f);+ var clearing = (centre: centre + new Vector2(250f, 0f), radius: 200f);+ var all = new List<Vector2>();+ for (int i = -6; i <= 6; i++) for (int k = -6; k <= 6; k++) all.Add(centre + new Vector2(100f * i, 100f * k));+ var holed = all.Where(p => (p - clearing.centre).magnitude >= clearing.radius).ToList();+ Assert.Less(holed.Count, all.Count, "the clearing takes plots");+ var none = new (Vector2, float)[0];+ bool Dry(float x, float z) => false;+ var whole = TownLandmarks.CoreOf(centre, 1500f, all, none, new Vector2[0], Dry);+ var kept = TownLandmarks.CoreOf(centre, 1500f, holed, new[] { clearing }, new Vector2[0], Dry);+ var moved = TownLandmarks.CoreOf(centre, 1500f, holed, none, new Vector2[0], Dry);+ Assert.Greater((moved.centre - whole.centre).magnitude, 10f, "without the clearing's ground the core moves away from it");+ Assert.Less((kept.centre - whole.centre).magnitude, 5f, "with it the core stays where the full town's is");+ // The grid ties at the core's edge, so which edge plots make the share shifts its radius by a few metres.+ Assert.AreEqual(whole.radius, kept.radius, 0.03f * whole.radius, "and keeps its size");+ }+[Test]public void ASpotIsTheFirstFreeOneAndNoneWhenAllAreTaken(){diff --git a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs b/unity/Assets/Tests/EditMode/UnitsInPlayTests.csindex 6ab363398..0d8d9a0ad 100644--- a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs+++ b/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs@@ -72,7 +72,7 @@ public class UnitsInPlayTestsAssert.AreEqual(1, israel.Count(u => u.Service == UnitData.Air));Assert.AreEqual(2, israel.Count(u => u.Service == UnitData.Navy));CollectionAssert.AreEquivalent(new[] { "brigade_8", "oded" }, israel.Where(u => u.Hidden != null).Select(u => u.Id),- "hidden: Oded (no sourced position) and the 8th (sourced at Tel Litvinsky, no clear spot on its own side); Carmeli (from 9 July 1948, by Mishmar HaYarden) and Alexandroni are placed (refs #385)");+ "hidden: Oded (no sourced position) and the 8th (sourced at Tel Litvinsky, no clear spot on its own side); Carmeli (at Haifa, then from 9 July 1948 by Mishmar HaYarden; #588) and Alexandroni are placed (refs #385)");double lon0 = C.Hexes.Min(h => h.Lon), lon1 = C.Hexes.Max(h => h.Lon), lat0 = C.Hexes.Min(h => h.Lat), lat1 = C.Hexes.Max(h => h.Lat);// The Arab forces (#740): data only, each with its echelon and its 15 May strength (owner, 17 October 2026).var arab = units.Where(u => u.Side != UnitData.Israel).ToList();@@ -205,8 +205,8 @@ public class UnitsInPlayTests{var s = Simulation.NewGame(C, GoldenRun.Seed, Mode.Historical);var tokens = UnitRoster.Build(Units, C, s);- CollectionAssert.AreEqual(new[] { "golani", "alexandroni", "kiryati", "givati", "etzioni", "harel", "negev", "ins_haganah", "ins_wedgwood" }, Ids(tokens),- "on 15 May 1948: no aircraft yet (101 Squadron from 20 May), the 7th Brigade from 24 May, Carmeli from 9 July (Operation Brosh), Yiftach only in Operation Dani");+ CollectionAssert.AreEqual(new[] { "golani", "carmeli", "alexandroni", "kiryati", "givati", "etzioni", "harel", "negev", "ins_haganah", "ins_wedgwood" }, Ids(tokens),+ "on 15 May 1948: no aircraft yet (101 Squadron from 20 May), the 7th Brigade from 24 May, Carmeli at Haifa (its sector seat, #588), Yiftach only in Operation Dani");Assert.AreEqual(5, s.Rung);Assert.IsTrue(tokens.Where(t => t.Unit.Service == UnitData.Army).All(t => t.Figures == 3), "full war: call-up at least 0.8");Assert.IsTrue(tokens.Where(t => t.Unit.Service == UnitData.Navy).All(t => t.ArtType == UnitShowcase.CorvetteType && t.Anchor.Place == "Haifa harbour"));@@ -347,8 +347,10 @@ public class UnitsInPlayTests// GDD Phase 2 PR 1 (the cutover): the golden run is 20 monthly turns with the reference player (was f07b1655).// Issue #665: each token's line now ends with its sourced vehicles ("+figure-vehicle-..."), the 65 mm gun and the jeep// (was 573f3099... and 323cbe04...; every line is otherwise the same, checked against main's logged rosters).- const string RosterGolden1950 = "0612f518c91b436ab5dbe1bf75a52d266a7c617255a4622030d01e51d852a03b";- const string WeeklyGolden = "db15a031d3d15961053161ab132363c19566d98e5ad310dc08ce2e79f742a4fc";+ // #588: Carmeli stands at Haifa from 15 May to 9 July 1948 (was 0612f518... and db15a031...; with its "carmeli@Haifa"+ // entries taken out, the logged rosters hash to those again).+ const string RosterGolden1950 = "e11d180e619f602009b652679e1967f0faa18c674bcdee440125cf15d2de1036";+ const string WeeklyGolden = "b459d9a4b8af7547b64a5f82f00dc877d707afabd1e065202ae361972e169ac0";// ---- Placement, the layer and the card (a built map) ---------------------------------------------------------@@ -781,9 +783,9 @@ public class UnitsInPlayTestsAssert.IsTrue(layer.Show(C, session.State));Assert.AreEqual(before, session.State.Hash(), "drawing the units changed the state");Assert.IsFalse(layer.Show(C, session.State), "the same roster draws nothing new");- Assert.AreEqual(9, layer.Tokens.Count);+ Assert.AreEqual(10, layer.Tokens.Count);var tokens = map.Terrain.transform.Find(UnitLayer.RootName).Find("Tokens");- Assert.AreEqual(9, tokens.childCount);+ Assert.AreEqual(10, tokens.childCount);var kiryati = tokens.Find("kiryati");Assert.AreEqual(3, kiryati.Cast<Transform>().Count(t => t.name.StartsWith("Rifleman")), "three riflemen at full call-up");var badge = kiryati.Find("Badge");