A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
fix(sim,content): living is required; every person confirmed deceased (I6)
eyalgolanb6d3c1b454a5
diff --git a/content/people.yaml b/content/people.yamlindex c7e6a3272..c615146f8 100644--- a/content/people.yaml+++ b/content/people.yaml@@ -1,10 +1,12 @@# Offices and dates are historical facts (sourced per term). competence/loyalty are game-balance values, not facts.# A term's `party` (when set) is the list the holder sat for in that government (First_government_of_Israel); otherwise `party` of the person applies.# Periods are [from, to). Terms without `to` continue beyond the M1 content range (end of 1949).+# living: false is set only after confirming each person's death date (en.wikipedia.org infobox, checked 2026-10-09).# Portraits: public-domain files fetched with license check (promo/CREDITS.md).people:- id: ben_gurionname: David Ben-Gurion+ living: falseparty: mapaicompetence: 9loyalty: 10@@ -15,6 +17,7 @@ people:status: fact-checked- id: zislingname: Aharon Zisling+ living: falseparty: mapamcompetence: 6loyalty: 5@@ -24,6 +27,7 @@ people:status: fact-checked- id: kaplanname: Eliezer Kaplan+ living: falseparty: mapaicompetence: 8loyalty: 9@@ -35,6 +39,7 @@ people:status: fact-checked- id: sharettname: Moshe Sharett+ living: falseparty: mapaicompetence: 8loyalty: 8@@ -45,6 +50,7 @@ people:status: fact-checked- id: shapiraname: Haim-Moshe Shapira+ living: falseparty: hapoel_hamizrachicompetence: 7loyalty: 7@@ -58,6 +64,7 @@ people:status: fact-checked- id: gruenbaumname: Yitzhak Gruenbaum+ living: falseparty: independentcompetence: 6loyalty: 6@@ -67,6 +74,7 @@ people:status: fact-checked- id: rosenname: Pinchas Rosen+ living: falseparty: new_aliyahcompetence: 8loyalty: 7@@ -77,6 +85,7 @@ people:status: fact-checked- id: bentovname: Mordechai Bentov+ living: falseparty: mapamcompetence: 7loyalty: 5@@ -86,6 +95,7 @@ people:status: fact-checked- id: sheetritname: Bechor-Shalom Sheetrit+ living: falseparty: sephardimcompetence: 7loyalty: 7@@ -97,6 +107,7 @@ people:status: fact-checked- id: maimonname: Yehuda Leib Maimon+ living: falseparty: mizrachicompetence: 6loyalty: 7@@ -109,6 +120,7 @@ people:status: fact-checked- id: bernsteinname: Peretz Bernstein+ living: falseparty: general_zionistscompetence: 7loyalty: 6@@ -118,6 +130,7 @@ people:status: fact-checked- id: remezname: David Remez+ living: falseparty: mapaicompetence: 7loyalty: 8@@ -128,6 +141,7 @@ people:status: fact-checked- id: levinname: Yitzhak-Meir Levin+ living: falseparty: agudat_yisraelcompetence: 6loyalty: 6@@ -138,6 +152,7 @@ people:status: fact-checked- id: dov_yosefname: Dov Yosef+ living: falseparty: mapaicompetence: 7loyalty: 8@@ -147,6 +162,7 @@ people:status: fact-checked- id: shazarname: Zalman Shazar+ living: falseparty: mapaicompetence: 7loyalty: 8@@ -155,6 +171,7 @@ people:status: fact-checked- id: golda_meirname: Golda Meir+ living: falseparty: mapaicompetence: 8loyalty: 9@@ -163,6 +180,7 @@ people:status: fact-checked- id: doriname: Yaakov Dori+ living: falsecompetence: 7loyalty: 8offices:@@ -170,6 +188,7 @@ people:status: fact-checked- id: yadinname: Yigael Yadin+ living: falsecompetence: 8loyalty: 8offices:diff --git a/sim/Statecraft.Sim.Tests/ValidationTests.cs b/sim/Statecraft.Sim.Tests/ValidationTests.csindex 3521b20a2..d32af2f19 100644--- a/sim/Statecraft.Sim.Tests/ValidationTests.cs+++ b/sim/Statecraft.Sim.Tests/ValidationTests.cs@@ -182,4 +182,15 @@ status: draftAssert.Equal(file, ex.File);Assert.Equal(field, ex.Field);}++ // I6: living is required, so a forgotten value cannot ship a living person in a release build.+ [Theory]+ [InlineData(" living: false\n", "")]+ [InlineData(" living: false\n", " living:\n")]+ public void LivingIsRequired(string from, string to)+ {+ var ex = Bad("people.yaml", from, to);+ Assert.Equal("people.yaml", ex.File);+ Assert.Equal("people[pm_one].living", ex.Field);+ }}diff --git a/sim/Statecraft.Sim/Content.cs b/sim/Statecraft.Sim/Content.csindex 89984b572..1560c56e5 100644--- a/sim/Statecraft.Sim/Content.cs+++ b/sim/Statecraft.Sim/Content.cs@@ -29,7 +29,8 @@ namespace Statecraft.Simpublic string Id { get; set; } = "";public string Name { get; set; } = "";public string NameHe { get; set; } = "";- public bool Living { get; set; }+ /// <summary>Required (null only when missing, which is a load error): a living person is excluded from release builds.</summary>+ public bool? Living { get; set; }public int Competence { get; set; }public int Loyalty { get; set; }public string Party { get; set; } = "";diff --git a/sim/Statecraft.Sim/ContentLoader.cs b/sim/Statecraft.Sim/ContentLoader.csindex e49d18ac7..bfd89d0cf 100644--- a/sim/Statecraft.Sim/ContentLoader.cs+++ b/sim/Statecraft.Sim/ContentLoader.cs@@ -199,6 +199,7 @@ namespace Statecraft.Simforeach (var p in c.People){+ if (!p.Living.HasValue) throw new ContentException("people.yaml", $"people[{p.Id}].living", "required (true or false)");if (p.Competence < 0 || p.Competence > 10) throw new ContentException("people.yaml", $"people[{p.Id}].competence", "must be 0-10");if (p.Loyalty < 0 || p.Loyalty > 10) throw new ContentException("people.yaml", $"people[{p.Id}].loyalty", "must be 0-10");if (p.Party != "" && !parties.Contains(p.Party)) throw new ContentException("people.yaml", $"people[{p.Id}].party", $"unknown party '{p.Party}'");