claude-memory/graph/solutions/on-base-code-sequential-encoding-not-bit-field-0e88fd.md

608 B

id type title tags importance confidence created updated
0e88fd3b-0a85-417e-9a64-8107dd09b252 solution On-base code sequential encoding (not bit-field)
strat-gameplay-webapp
python
fix
encoding
0.8 0.8 2026-02-16T16:42:12.791418+00:00 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).