Engine Lab
Gates 1-2 (architecture contract, source-anchored rules checklist), Gate 3A (canonical state, standard starting position, point conversion, movement-direction arithmetic), Gate 3B (ordinary non-contact sequence scaffold), Gate 4A (open/blocked/blot classification, hitting, Bar priority and entry), Gate 4B (mandatory/maximal dice-use selection for normal distinct two-die rolls, over the Gate 4A supported ruleset), Gate 5A (bearing-off eligibility, exact-die and oversize-die authority, integrated into that same distinct-roll selection), Gate 5B (rolled-doubles four-move maximal-use selection, composing ordinary movement, contact/hits, Bar entry and bearing off), Gate 6 (opening-roll resolution, deterministic supplied-dice turn/dice-state integration, a unified dispatcher routing each turn to the accepted Gate 5A or Gate 5B selector, and single/gammon/backgammon game-end classification), Gate 7 (a pure whole-state invariant validator, a pure AI-legality guard, and a TEST-ONLY deterministic seeded simulation/regression harness), and Gate 8 (final audit: public API contract snapshot, SHA-256 package-content integrity register, expanded 1-100 seed deterministic validation) — this rules engine is LOCKED at v0.1.9. All 10 locked engine modules in this build — js/02, js/03, and js/09 through js/16 — match the v0.1.9 integrity register byte-for-byte; see CLAUDE-COMPLETION-REPORT.txt. This locked engine now powers real local Human-v-Human play above (real dice, opening roll, normal turns) — the TEST / SUPPLIED DICE control below remains for diagnostics only.
- Gate 1 — architecture contract
- present
- Gate 2 — rules-validation checklist
- present
- Gate 3A — setup/movement foundation
- present
- Gate 3B — non-contact sequence scaffold
- present
- Gate 4A — contact/Bar foundation
- present
- Gate 4B — distinct-roll dice-use selection
- present
- Gate 5A — bearing-off foundation
- present
- Gate 5B — rolled-doubles maximal use
- present
- Gate 6 — opening/turn/result authority
- present
- Gate 7 — integrated regression/validation
- present
- Gate 8 — final audit / LOCKED baseline
- present
- Baseline status
- not implemented
- Legal-move generation
- not implemented
- Dice authority
- not implemented
- Forced/maximal dice use
- not implemented
- Bearing-off authority
- not implemented
- Rolled-doubles authority
- not implemented
- Opening-roll authority
- not implemented
- Turn/result authority
- not implemented
- Winner authority
- not implemented
- State-invariant authority
- not implemented
- AI-legality guard
- not implemented
- Deterministic simulation
- not implemented
- Alpha Foundation 1 — board geometry / checker render
- present, calibration-pending (not a numbered Engine Lab gate — see js/17-19, tests/gate9-geometry-render-tests.js)
- Alpha UI — P1/P2 player status rail
- present, state-driven (presentation only)
TEST / SUPPLIED DICE — Human-v-Human Turn Control
Development/Alpha only. This is TEST mode: dice values below are supplied by you, never rolled — separate from normal play above, which generates real dice via Web Crypto.
Full architecture: backgammonx-v1.0.6/engine/ENGINE-LAB-ARCHITECTURE.md (locked, unchanged). Full checklist: backgammonx-v1.0.6/engine/RULES-VALIDATION-CHECKLIST.md (locked, unchanged). Geometry/render and player-status tests are registered under the same "Run Engine Lab Tests" button, groups gate9-geometry-render and alpha-status-strip. Gate 8's own audit suite (35 tests) is intentionally not loaded on this page — it runs from its native context, Bv0.1.9.html, where it still passes 35/35 unmodified; see CLAUDE-COMPLETION-REPORT.txt.