A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
#2739: cite the owner's rounding ruling in the camp-cap comments (#3083)
Eyal Golana369a4640c33
diff --git a/sim/Statecraft.Sim.Tests/Gdd03BasicTrainingFixtureTests.cs b/sim/Statecraft.Sim.Tests/Gdd03BasicTrainingFixtureTests.csindex 3399fed03..2bec45fba 100644--- a/sim/Statecraft.Sim.Tests/Gdd03BasicTrainingFixtureTests.cs+++ b/sim/Statecraft.Sim.Tests/Gdd03BasicTrainingFixtureTests.cs@@ -636,10 +636,10 @@ public class Gdd03BasicTrainingFixtureTests}}- // #2739's rounding rule (proposed in the PR; the owner set none): when the ledger's scale doesn't divide the cap's people,- // the camp takes the whole records that fit, rounded down, so it never holds more people than the cap. At 3,000 a record- // 50,000 people is 16 records (48,000), and the 17th is refused. A scale where not even one record fits refuses the- // fixture, rather than leaving a camp that can train no one.+ // #2739's rounding rule (owner, 7 Nov 2026, "Round down, refuse 0"; re-confirmed 11 Nov 2026): when the ledger's scale+ // doesn't divide the cap's people, the camp takes the whole records that fit, rounded down, so it never holds more people+ // than the cap. At 3,000 a record 50,000 people is 16 records (48,000), and the 17th is refused. A scale where not even+ // one record fits refuses the fixture, rather than leaving a camp that can train no one.[Fact] public void AnUnevenScaleRoundsTheCampCapDown(){var c = Catalogue("population.people_per_unit", Agreed(3_000)); var s = Crowd(c, null, 20); var f = Fixture(c, s, spare: 20);diff --git a/sim/Statecraft.Sim/Gdd03BasicTrainingFixture.cs b/sim/Statecraft.Sim/Gdd03BasicTrainingFixture.csindex 7401e6604..57762948c 100644--- a/sim/Statecraft.Sim/Gdd03BasicTrainingFixture.cs+++ b/sim/Statecraft.Sim/Gdd03BasicTrainingFixture.cs@@ -113,9 +113,9 @@ namespace Statecraft.Sim/// <summary>#2739, option 1 (owner, 7 November 2026): <c>military.camp_capacity</c> counts population units at D2's/// scale, rules.yaml's start-day <c>people_per_unit</c> (1,000), so 50 is 50,000 people (the catalogue note: "#1668's/// 5 places at 10,000 people a unit is 50 units at D2's 1,000 people a unit"). The fixture holds that many people in- /// records at the ledger's own scale: 50 at 1,000 a record, 5 at 10,000. Rounding rule (proposed in #2739's PR, not- /// an owner ruling): a scale that doesn't divide the people rounds down, so a camp never holds more people than the- /// cap, and a scale where not even one record fits is refused.</summary>+ /// records at the ledger's own scale: 50 at 1,000 a record, 5 at 10,000. Rounding rule (owner, 7 November 2026, "Round+ /// down, refuse 0"; re-confirmed 11 November 2026): a scale that doesn't divide the people rounds down, so a camp never+ /// holds more people than the cap, and a scale where not even one record fits is refused.</summary>static int CampRecords(int capacity, int capacityPeoplePerUnit, int ledgerPeoplePerUnit){long records = (long)capacity * capacityPeoplePerUnit / ledgerPeoplePerUnit;