From fa776218eb4fe6ae96137db7fb5215ecffb3039a Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Mon, 16 Feb 2026 10:42:12 -0600 Subject: [PATCH] store: On-base code sequential encoding (not bit-field) --- ...-code-sequential-encoding-not-bit-field-0e88fd.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graph/solutions/on-base-code-sequential-encoding-not-bit-field-0e88fd.md diff --git a/graph/solutions/on-base-code-sequential-encoding-not-bit-field-0e88fd.md b/graph/solutions/on-base-code-sequential-encoding-not-bit-field-0e88fd.md new file mode 100644 index 00000000000..81922f52dcd --- /dev/null +++ b/graph/solutions/on-base-code-sequential-encoding-not-bit-field-0e88fd.md @@ -0,0 +1,12 @@ +--- +id: 0e88fd3b-0a85-417e-9a64-8107dd09b252 +type: solution +title: "On-base code sequential encoding (not bit-field)" +tags: [strat-gameplay-webapp, python, fix, encoding] +importance: 0.8 +confidence: 0.8 +created: "2026-02-16T16:42:12.791418+00:00" +updated: "2026-02-16T16:42:12.791418+00:00" +--- + +The strat gameplay system uses sequential chart encoding for current_on_base_code: 0=empty, 1=R1, 2=R2, 3=R3, 4=R1+R2, 5=R1+R3, 6=R2+R3, 7=loaded. Previously was bit-field (3=R1+R2, 4=R3) which caused mismatch with runner_advancement chart code. Fixed in calculate_on_base_code() in game_models.py (2025-02-08).