A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
refactor(sim): drop unreachable open-ended branch in placeholder coverage check
eyalgolan2f76e740328d
diff --git a/sim/Statecraft.Sim/EventRules.cs b/sim/Statecraft.Sim/EventRules.csindex d6df3a1c6..63aead27e 100644--- a/sim/Statecraft.Sim/EventRules.cs+++ b/sim/Statecraft.Sim/EventRules.cs@@ -69,10 +69,9 @@ namespace Statecraft.Simif (Inside(t.From)) points.Add(t.From);if (t.To.HasValue && Inside(t.To.Value)) points.Add(t.To.Value);}+ // An open-ended window needs no extra check: a last finite term ends inside [from, ∞) and is caught above.foreach (var d in points)if (Offices.Holder(c, office, d) == null) return d;- if (to == null && !terms.Any(t => t.To == null))- return terms.Select(t => t.To!.Value).DefaultIfEmpty(from).Max();return null;}}