A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
content: sourced 1948 positions for Carmeli, Alexandroni and the 8th Brigade; Oded's conflict recorded (refs #385) (#570)
Eyal Golanea65ee6b9933
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b62ed04a9..f95ece28d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,15 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB(Knesset records or Hebrew Wikipedia, checked 14 October 2026); the loader and `SettlementPlacer` refuse a Hebrew namewithout a source. Places take their 1948 form (Tel Aviv, Beisan, Kfar Ata, Pardes Hanna, Tarshiha), and the localities'runtime file carries `name_he`. The content hash moves; the goldens do not.+- Two more brigades on the map (refs #385, #197): Carmeli facing the Syrian bridgehead at Mishmar HaYarden, from the+ Rosh Pinna side, during Operation Brosh (9 to 18 July 1948), and Alexandroni at its Netanya headquarters (Camp Dora;+ 15 May to November 1948), each sourced in `content/map/units_1948.yaml`. Givati's window at Gedera now ends with its+ sourced move to the centre in November 1948 (it ran to the Egyptian armistice). Carmeli is+ not drawn at Haifa, its sector's place: the map has no clear spot outside the town (#588). The 8th Brigade's position+ (Tel Litvinsky, 24 May to 9 July 1948) is recorded, but it stays hidden: the map has no clear spot for it on its own+ side (#588). Oded stays hidden:+ its sources conflict and name no place. Map-only data: the sim goldens do not move; the units roster pins in+ `UnitsInPlayTests` are re-pinned.- Two-colour borders (refs #196, owner rulings 2026-10-14): from 11 June 1948 the map colours areas by side, as promo 03 does:the Israeli side in a deeper blue, the other side orange-red, and a dashed grey for contested ground (only for the days anoperation ran there), no-man's land and the demilitarized zones. The sides come from the front lines of Israel Statediff --git a/content/map/units_1948.yaml b/content/map/units_1948.yamlindex 281154a53..977e0a1b6 100644--- a/content/map/units_1948.yaml+++ b/content/map/units_1948.yaml@@ -76,24 +76,67 @@ units:number: 2nd Brigadeservice: armyformed: 22 February 1948- sector: The northwest (split from the Levanoni Brigade in February 1948).- wikipedia_only: true+ sector: "The Haifa area and the Zevulun district, that is Haifa and the Western Galilee (split from the Levanoni Brigade in February 1948). It took Acre in Operation Ben-Ami (from 13 May 1948; Acre surrendered on the night of 17-18 May), led Operation Brosh against the Syrian bridgehead at Mishmar HaYarden (9-18 July 1948) and fought in Operation Hiram."+ wikipedia_only: falsestatus: draft- hidden: The sources name its sector ("the northwest") but no place or headquarters.- anchors: []+ anchors:+ - place: Facing the Syrian bridgehead at Mishmar HaYarden+ lon: 35.59972+ lat: 33.00278+ from: '1948-07-09'+ since: 9 July 1948+ to: '1948-07-19'+ end_basis: source+ end_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)."+ toward:+ place: Rosh Pinna+ lon: 35.54222+ lat: 32.97+ note: "The headquarters of Operation Brosh (he.wiki Operation Brosh: the Hotel Shulamit in Rosh Pinna); Israeli throughout 1948, while Mishmar HaYarden's own hex was held by the Syrians from 10 June 1948."+ sources:+ - {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/Rosh_Pinna', checked: '2026-10-15'}+ place_hex: [12, 6]+ sources:+ # Organisation of Haganah Heritage, Lexicon, "Brigade 2 Carmeli": the brigade's HQ and most of its forces in Operation Brosh (July 1948) against the Syrian bridgehead at Mishmar HaYarden.+ - {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/Mishmar_HaYarden_(moshava)', checked: '2026-10-15'}+ - {url: 'https://he.wikipedia.org/wiki/%D7%9E%D7%91%D7%A6%D7%A2_%D7%97%D7%99%D7%A8%D7%9D', checked: '2026-10-15'}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 Brigadenumber: 3rd Brigadeservice: armyformed: November 1947 (the Haganah's decision of 7 November)- sector: The Sharon region.- wikipedia_only: true+ sector: "The Sharon region: from the Carmel in the north to the Dan bloc in the south; headquarters at Camp Dora in Netanya. In November 1948 it replaced the Givati Brigade at the Faluja pocket."+ wikipedia_only: falsestatus: draft- hidden: The sources name its region ("the Sharon") but no place or headquarters.- anchors: []+ anchors:+ - place: Netanya (Camp Dora)+ lon: 34.85667+ lat: 32.32861+ from: '1948-05-15'+ since: March 1948+ to: '1948-11-01'+ precision: month+ end_basis: source+ end_note: "he.wiki: in November 1948 the brigade replaced the Givati Brigade at the siege of the Faluja pocket."+ note: "he.wiki: in March 1948 the brigade had four battalions, three in the Sharon settlements and the fourth at the brigade's headquarters at Camp Dora in Netanya. en.wiki (Haganah) also has it headquartered in Netanya. The coordinates are Netanya's; Camp Dora is in the town. Netanya's municipal heritage site (Netanya Museum), citing Sar-El Davidovich, Netanya - Sipura shel Ir (Motiv-Dvir, 1992): in the War of Independence the brigade's headquarters sat at Camp Dora, a camp the British left in Netanya."+ sources:+ - {url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%AA_%D7%90%D7%9C%D7%9B%D7%A1%D7%A0%D7%93%D7%A8%D7%95%D7%A0%D7%99', checked: '2026-10-15'}+ # Netanya Municipality, Moreshet Netanya, "Bitachon ve-hagana - ad 1948", citing Sar-El Davidovich, Netanya - Sipura shel Ir (1992): the brigade's HQ was at Camp Dora in Netanya.+ - {url: 'https://moreshet.netanya.muni.il/story/?itemId=28077', checked: '2026-10-15'}+ # Netanya Municipality, Moreshet Netanya, timeline "Netanya in the War of Independence": the brigade's HQ was placed at Camp Dora, a British camp.+ - {url: 'https://moreshet.netanya.muni.il/timeline/?itemId=27824', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Haganah', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Netanya', checked: '2026-10-15'}sources:- {url: 'https://en.wikipedia.org/wiki/Alexandroni_Brigade', checked: '2026-10-11'}- {url: 'https://en.wikipedia.org/wiki/Etzioni_Brigade', checked: '2026-10-11'}@@ -104,7 +147,7 @@ units:service: armyformed: February 1948sector: "The urban area of Tel Aviv, from the Yarkon River in the north to Bat Yam in the south and Yazur in the east."- wikipedia_only: true+ wikipedia_only: falsestatus: draftanchors:- place: Tel Aviv@@ -115,9 +158,11 @@ units:to: '1949-04-03'end_basis: front_armisticefront: jordan- note: Established in Tel Aviv in February 1948; its border was the city's urban area. The central front was covered by the agreement with Jordan.+ note: "Established in Tel Aviv in February 1948; its border was the city's urban area. The central front was covered by the agreement with Jordan. The Haganah Heritage lexicon (Brigade 5 Givati): in February 1948 it was decided to set up the Kiryati Brigade in the city."sources:- {url: 'https://en.wikipedia.org/wiki/4th_Armored_Brigade_%22Kiryati%22', checked: '2026-10-11'}+ # Organisation of Haganah Heritage, Lexicon, "Brigade 5 Givati": in February 1948 the decision to set up the Kiryati Brigade in Tel Aviv.+ - {url: 'https://hahagana.org.il/lexicon/lexiconpage/?itemId=47227', checked: '2026-10-15'}- {url: 'https://en.wikipedia.org/wiki/Tel_Aviv', checked: '2026-10-11'}- id: givatiname: Givati Brigade@@ -126,19 +171,23 @@ units:formed: December 1947first_commander: Shimon Avidansector: "Moved to the south as the war entered its second stage, concentrated mainly around Gedera, Gan Yavne and Be'er Tuvia."- wikipedia_only: true+ wikipedia_only: falsestatus: draftanchors:- place: Gederalon: 34.77722lat: 31.81194from: '1948-05-15'- to: '1949-02-24'- end_basis: front_armistice- front: egypt- note: "One place picked from the sector: the first of the three the source names. The move south is not dated, so the card gives no start."+ to: '1948-11-01'+ precision: month+ end_basis: source+ end_note: "The Haganah Heritage lexicon (Brigade 5 Givati): the brigade was moved to the centre of the country in November 1948 (Iraqi attacks on Ramat HaKovesh); he.wiki Alexandroni: in November 1948 the Alexandroni Brigade replaced it at the Faluja pocket."+ note: "One place picked from the sector: the first of the three the source names. The move south is not dated, so the card gives no start. The Haganah Heritage lexicon (Brigade 5 Givati): in Operation Barak (May 1948) the brigade took most of the area from Gedera and Be'er Tuvia south and west."sources:- {url: 'https://en.wikipedia.org/wiki/Givati_Brigade', checked: '2026-10-11'}+ # Organisation of Haganah Heritage, Lexicon, "Brigade 5 Givati": Operation Barak took the area from Gedera and Be'er Tuvia south and west; moved to the centre in November 1948.+ - {url: 'https://hahagana.org.il/lexicon/lexiconpage/?itemId=47227', checked: '2026-10-15'}+ - {url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%AA_%D7%90%D7%9C%D7%9B%D7%A1%D7%A0%D7%93%D7%A8%D7%95%D7%A0%D7%99', checked: '2026-10-15'}- {url: 'https://en.wikipedia.org/wiki/Gedera', checked: '2026-10-11'}- id: etzioniname: Etzioni Brigade@@ -147,7 +196,7 @@ units:formed: Late 1947first_commander: Yisrael Amirsector: The defence of Jerusalem and its surroundings.- wikipedia_only: true+ wikipedia_only: falsestatus: draftanchors:- place: Jerusalem@@ -158,7 +207,7 @@ units:to: '1949-04-03'end_basis: front_armisticefront: jordan- note: Founded in late 1947 as the Field Corps unit responsible for the defence of Jerusalem.+ note: "Founded in late 1947 as the Field Corps unit responsible for the defence of Jerusalem. The Haganah Heritage lexicon (Etzioni): its area was the city of Jerusalem and the settlements around it."toward:place: West Jerusalemlon: 35.21944@@ -168,6 +217,8 @@ units:- {url: 'https://en.wikipedia.org/wiki/West_Jerusalem', checked: '2026-10-11'}sources:- {url: 'https://en.wikipedia.org/wiki/Etzioni_Brigade', checked: '2026-10-11'}+ # Organisation of Haganah Heritage, Lexicon, "Etzioni": Brigade 6, its area the city of Jerusalem and the settlements around it.+ - {url: 'https://www.hahagana.org.il/lexicon/lexiconpage/?itemId=47926', checked: '2026-10-15'}- {url: 'https://en.wikipedia.org/wiki/Jerusalem', checked: '2026-10-11'}- id: brigade_7name: 7th Brigade@@ -210,24 +261,38 @@ units:service: armyformed: 24 May 1948first_commander: Yitzhak Sadeh- sector: Not stated in the sources.- wikipedia_only: true+ sector: "The IDF's first armoured brigade: after its founding it trained at Tel Litvinsky (later Tel HaShomer); its first operation was Operation Dani in July 1948, then Yoav, Assaf and Horev in the south. Disbanded in April 1949."+ wikipedia_only: falsestatus: draft- hidden: The sources give its founding but no sector or headquarters.+ disbanded: {date: '1949-04-01', precision: month, sources: [{url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%94_8', checked: '2026-10-15'}]}+ # he.wiki 8th Brigade keeps the brigade's base at Tel Litvinsky until after its disbandment in April 1949 (the base then moved to Jaffa), and the Lehi Heritage page gives no dates: the end at Dani below is the first operation, not a sourced departure. Do not carry it over when #588 lets the row be drawn.+ hidden: "Sourced at Tel Litvinsky (later Tel HaShomer; 34.85623 E, 32.04195 N) from 24 May 1948 to the start of Operation Dani on 9 July 1948 (owner, 2026-10-15: accepted, verify later), but the map has no clear spot for it: within one hex of the camp the placer finds none, and the only clear ground (UnitGround, full map, 2026-10-15) lies among the Arab villages of Fajja, 'Abbasiyya and Safiriya (content/map/localities_1948.yaml), not on the brigade's own side. Hidden until the placer can stand it at the camp; en.wiki (Haganah) has the brigade \"headquartered near Jerusalem\", with no source."anchors: []sources:- - {url: 'https://en.wikipedia.org/wiki/8th_Armored_Brigade_(Israel)', checked: '2026-10-11'}+ - {url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%94_8', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/8th_Armored_Brigade_(Israel)', checked: '2026-10-15'}+ # Lehi Heritage Association (lehi.org.il), "June 1948 - 1951": the brigade staff's base was at the Tel Litvinsky camp.+ - {url: 'https://lehi.org.il/he/%d7%99%d7%95%d7%a0%d7%99-1948-1951/', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Operation_Danny', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Tel_HaShomer', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Haganah', checked: '2026-10-15'}- id: odedname: Oded Brigadenumber: 9th Brigadeservice: armysector: The sources conflict.- wikipedia_only: true+ wikipedia_only: falsestatus: draft- hidden: "The source says it was headquartered in Jerusalem, yet it fought at al-Malkiyya in the north in June 1948."+ hidden: "The sources conflict and none names a place: en.wiki (Oded Brigade, Haganah) says it was headquartered in Jerusalem; he.wiki says it was formed on 1 June 1948 under Uri Yaffe (whose underground name was Oded; the brigade table in en.wiki's 1948 war article names Avraham Yoffe) from a Haifa-area battalion, local Guard Corps forces and new immigrants, to hold the east of the Galilee panhandle against the Golan, and it fought at al-Malkiyya in June 1948. Not yet formed on 15 May 1948 by he.wiki's date. P66: the Ministry of Defence memorial site (Izkor, Brigade 9 monument) has it formed in May 1948 as one of the three brigades for the north, named for Uri Yaffe's underground name, and fighting at al-Malkiyya; the Haganah Heritage lexicon (Golani) has Golani's 11th Battalion, posted in the eastern Upper Galilee, joining Oded at its formation at the end of May 1948. Both back he.wiki's northern account over en.wiki's Jerusalem headquarters; neither names a place."anchors: []sources:- {url: 'https://en.wikipedia.org/wiki/Oded_Brigade', checked: '2026-10-11'}+ - {url: 'https://he.wikipedia.org/wiki/%D7%97%D7%98%D7%99%D7%91%D7%AA_%D7%A2%D7%95%D7%93%D7%93', checked: '2026-10-15'}+ # Ministry of Defence, Izkor, "Brigade 9 monument": formed May 1948, one of three brigades for the north, named after Uri Yaffe's underground name.+ - {url: 'https://www.izkor.gov.il/monument/en_25a0a8684b4a352bff01d50c475b2964/', checked: '2026-10-15'}+ # Organisation of Haganah Heritage, Lexicon, "Golani": its 11th Battalion joined the Oded Brigade at its formation, end of May 1948.+ - {url: 'https://www.hahagana.org.il/lexicon/lexiconpage/?itemId=47295', checked: '2026-10-15'}+ - {url: 'https://en.wikipedia.org/wiki/Haganah', checked: '2026-10-15'}- id: harelname: Harel Brigadenumber: 10th Brigade (Palmach)@@ -235,7 +300,7 @@ units:formed: 16 April 1948first_commander: Yitzhak Rabinsector: "All units in the Jerusalem corridor and hills; in the first half of May 1948 it took the corridor and opened the road to Sha'ar HaGai. Later it fought in Operation Horev."- wikipedia_only: true+ wikipedia_only: falsestatus: draftanchors:- place: "Sha'ar HaGai"@@ -246,7 +311,7 @@ units:to: '1948-12-22'end_basis: sourceend_note: Operation Horev, from 22 December 1948, in the south; no place is given for the brigade there.- note: "One place picked from the sector: the source names the Jerusalem corridor as the sector and Sha'ar HaGai as the end of the road the brigade opened (and as a battalion's name)."+ note: "One place picked from the sector: the source names the Jerusalem corridor as the sector and Sha'ar HaGai as the end of the road the brigade opened (and as a battalion's name). The Ministry of Defence memorial site (Izkor, Harel memorial rock): the brigade was the mobile strike force of the Jerusalem area, and the rock stands on the narrow stretch between Sha'ar HaGai and Saris where convoys to Jerusalem passed under its battalions' escort."place_hex: [-2, 23]toward:place: Saris@@ -258,6 +323,8 @@ units:- {url: 'https://en.wikipedia.org/wiki/Kiryat_Anavim', checked: '2026-10-11'}sources:- {url: 'https://en.wikipedia.org/wiki/Harel_Brigade', checked: '2026-10-11'}+ # Ministry of Defence, Izkor, "Memorial rock for the Palmach Harel Brigade": formed 16 April 1948; fought for the corridor; convoys between Sha'ar HaGai and Saris.+ - {url: 'https://www.izkor.gov.il/en_5b66232e91a0aeffce2c5c9082b5de0c', checked: '2026-10-15'}- {url: 'https://en.wikipedia.org/wiki/Operation_Horev', checked: '2026-10-11'}- {url: "https://en.wikipedia.org/wiki/Sha'ar_HaGai", checked: '2026-10-11'}- id: yiftach@@ -266,7 +333,7 @@ units:service: armyformed: April 1948sector: "Formed from Palmach battalions of the Jezreel Valley and the eastern valleys; in July 1948 it fought in Operation Dani, which took Lydda and Ramle. Disbanded in May 1949."- wikipedia_only: true+ wikipedia_only: falsestatus: draftdisbanded: {date: '1949-05-01', precision: month, sources: [{url: 'https://en.wikipedia.org/wiki/Yiftach_Brigade', checked: '2026-10-11'}]}anchors:@@ -278,10 +345,12 @@ units:to: '1948-07-20'end_basis: sourceend_note: Operation Dani ended on 19 July 1948.- note: "The IDF entered Lydda on 11 July 1948 (Lod article); the Operation Danny article has the two towns taken on 10 July. Yiftach approached from the south from 9 July."+ note: "The IDF entered Lydda on 11 July 1948 (Lod article); the Operation Danny article has the two towns taken on 10 July. Yiftach approached from the south from 9 July. The Palmach heritage site (Operation Dani): in the first stage Yiftach was to outflank Lydda and Ramle from the south; it dates the operation 10-18 July 1948."sources:- {url: 'https://en.wikipedia.org/wiki/Operation_Danny', checked: '2026-10-11'}- {url: 'https://en.wikipedia.org/wiki/Yiftach_Brigade', checked: '2026-10-11'}+ # Palmach heritage site (palmach.org.il), "Operation Dani": Yiftach to outflank Lydda and Ramle from the south; 10-18 July 1948.+ - {url: 'https://www.palmach.org.il/history/database/?itemId=5632', checked: '2026-10-15'}- {url: 'https://en.wikipedia.org/wiki/Lod', checked: '2026-10-11'}- id: negevname: Negev Brigadediff --git a/docs/units.md b/docs/units.mdindex f97140b2b..5403d896c 100644--- a/docs/units.md+++ b/docs/units.md@@ -88,6 +88,11 @@ The owner ruled:2 at or above the level-3 floor (0.15), else 1.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+ is 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 sources+ conflict and name no place).The controller adopted the design's defaults:- tokens stand only at dated, sourced positions and do not move with operation events;@@ -115,8 +120,10 @@ After the staff review the controller ruled:| 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) |+| 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) | 24 Feb 1949 (Egypt) |+| Givati (5th) | Gedera, one of the three places its sector names (no start given) | November 1948, the move to the centre (source) || Etzioni (6th) | Jerusalem (since late 1947) | 3 Apr 1949 (Jordan) || 7th Brigade | Hulda, its headquarters for the Latrun attacks, 24–31 May 1948; Ein Shemer, June 1948 | sources || Harel (10th) | Sha'ar HaGai, one place picked from the Jerusalem corridor (since the first half of May 1948) | 22 Dec 1948, Operation Horev (source) |diff --git a/tools/tests/test_units_1948.py b/tools/tests/test_units_1948.pyindex c80571b85..b4725a268 100644--- a/tools/tests/test_units_1948.py+++ b/tools/tests/test_units_1948.py@@ -65,7 +65,7 @@ def test_since_is_never_the_game_start():assert '15 May 1948' not in str(a.get('since', '')), f"{u['id']} {a['place']}"-def test_every_source_has_a_url_and_a_check_date_and_wikipedia_only_is_true():+def test_every_source_has_a_url_and_a_check_date_and_wikipedia_only_matches_its_sources():for u in UNITS:srcs = sources(u)assert srcs, u['id']@@ -76,7 +76,7 @@ def test_every_source_has_a_url_and_a_check_date_and_wikipedia_only_is_true():def test_hidden_brigades_and_headgear():- assert {u['id'] for u in UNITS if u.get('hidden')} == {'carmeli', 'alexandroni', 'brigade_8', 'oded'}+ assert {u['id'] for u in UNITS if u.get('hidden')} == {'brigade_8', 'oded'}for u in UNITS:if u.get('hidden'):assert u['anchors'] == []@@ -90,3 +90,12 @@ def test_a_toward_point_is_sourced_and_says_why():t = a.get('toward')if t:assert t['note'].strip() and t['sources'], f"{u['id']} {a['place']}"+++def test_a_window_ends_at_the_earliest_sourced_move():+ """Review M1 and S2 (#570): Carmeli's Brosh window ends with the second truce, and Givati's with its move to the centre."""+ def shown(uid, d):+ u = next(x for x in UNITS if x['id'] == uid)+ return any(day(a['from']) <= d < day(a['to']) for a in u['anchors'])+ assert shown('carmeli', date(1948, 7, 10)) and not shown('carmeli', date(1948, 9, 1))+ assert shown('givati', date(1948, 10, 1)) and not shown('givati', date(1948, 12, 15))diff --git a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs b/unity/Assets/Tests/EditMode/UnitsInPlayTests.csindex 35972919c..60b840be7 100644--- a/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs+++ b/unity/Assets/Tests/EditMode/UnitsInPlayTests.cs@@ -70,8 +70,8 @@ public class UnitsInPlayTestsAssert.AreEqual(12, units.Count(u => u.Service == UnitData.Army), "the twelve brigades of 1948");Assert.AreEqual(1, units.Count(u => u.Service == UnitData.Air));Assert.AreEqual(2, units.Count(u => u.Service == UnitData.Navy));- CollectionAssert.AreEquivalent(new[] { "carmeli", "alexandroni", "brigade_8", "oded" }, units.Where(u => u.Hidden != null).Select(u => u.Id),- "owner ruling: the four brigades with no sourced position are listed and hidden");+ CollectionAssert.AreEquivalent(new[] { "brigade_8", "oded" }, units.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)");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);foreach (var u in units){@@ -147,8 +147,8 @@ public class UnitsInPlayTests{var s = Simulation.NewGame(C, GoldenRun.Seed, Mode.Historical);var tokens = UnitRoster.Build(Units, C, s);- CollectionAssert.AreEqual(new[] { "golani", "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, Yiftach only in Operation Dani");+ 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");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"));@@ -195,6 +195,10 @@ public class UnitsInPlayTests{CollectionAssert.AreEqual(new[] { "kiryati", "etzioni", "squadron_101" }, Ids(UnitRoster.Build(Units, C.Rules, new DateTime(1949, 2, 24), 4, 0.4)),"the southern brigades and the ships end on the Egypt armistice");+ CollectionAssert.DoesNotContain(Ids(UnitRoster.Build(Units, C.Rules, new DateTime(1948, 9, 1), 4, 0.4)), "carmeli",+ "Carmeli's window ends with Operation Brosh and the second truce (18 July 1948): no source keeps it there later");+ CollectionAssert.DoesNotContain(Ids(UnitRoster.Build(Units, C.Rules, new DateTime(1948, 12, 15), 4, 0.4)), "givati",+ "Givati moved to the centre in November 1948 (the Haganah lexicon)");CollectionAssert.AreEqual(new[] { "squadron_101" }, Ids(UnitRoster.Build(Units, C.Rules, new DateTime(1949, 4, 3), 2, 0.05)),"the central and Jerusalem brigades end on the Jordan armistice");Assert.IsEmpty(UnitRoster.Build(Units, C.Rules, LastArmistice, 2, 0.05));@@ -237,8 +241,8 @@ public class UnitsInPlayTestsAssert.AreEqual(WeeklyGolden, Sha256(all));}- const string RosterGolden1950 = "ef4544705105a98758dc843120b6e3493c52419d1d4afad28e0b4a3b6e87e01c";- const string WeeklyGolden = "2d111a792224b0abd544b2fdfd7469c8f20047cefc5492ea272b79134d6d3c06";+ const string RosterGolden1950 = "f07b1655defbd0299767a2e214bf62558f8c64a37d2e408ecc9ee0ed4ed24c29";+ const string WeeklyGolden = "323cbe046b9666b1d9ab46abeb139540d6e06e394a65ad03e043aa0912cba96e";// ---- Placement, the layer and the card (a built map) ---------------------------------------------------------@@ -592,9 +596,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(8, layer.Tokens.Count);+ Assert.AreEqual(9, layer.Tokens.Count);var tokens = map.Terrain.transform.Find(UnitLayer.RootName).Find("Tokens");- Assert.AreEqual(8, tokens.childCount);+ Assert.AreEqual(9, 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");@@ -640,7 +644,7 @@ public class UnitsInPlayTestsStringAssert.Contains("At Hulda (headquarters for the Latrun attacks) since 24 May 1948", UnitCard.For(Token("brigade_7", latrun), latrun, text).Body);var ship = UnitCard.For(Token("ins_haganah", start), start, text);StringAssert.Contains("commissioned 1948", ship.Subtitle);- StringAssert.Contains("Wikipedia only", kiryati.Note);+ StringAssert.Contains("Wikipedia only", UnitCard.For(Token("golani", start), start, text).Note, "Golani is still Wikipedia only; Kiryati cites the Haganah lexicon (P66)");var hatzor = StateAt(new DateTime(1948, 12, 1), 5, 0.8);StringAssert.DoesNotContain("Wikipedia only", UnitCard.For(Token("squadron_101", hatzor), hatzor, text).Note,"Hatzor's position cites Eduard (review M8: the note is per position)");