Commit Graph

1 Commits

Author SHA1 Message Date
Brian Fertig 43ca22b63a
Rework backgammon into a full seaside kafeneio experience
- Rewrite the AI with a skill 1–5 ladder: pip-equivalent evaluator with shot counting, primes and blot risk; exact one-sided bear-off table (54k positions) for race play; optional 2-ply lookahead at skill 5; cube double/take decisions with Crawford and dead-cube handling
- Add a procedural art set (olive-wood tavli case, bone/walnut checkers, dice cups, doubling cube, tea glass, komboloi) and a layout module driving every screen rect, including a mirrored home-board option
- Rebuild the scene around the new modules: persistent checker registry with stable ids and animated moves, 3D dice throws planned from real rolls, leather cup shake/throw, HUD plates/slate/ledger, pause menu, cube offer slip, end screen with stats and pip-race chart, Web Audio clacks/slams and looping sea waves
- Expand the rules engine: opening roll, maximum-dice/higher-die enforcement, bar entry and dancing, overshoot bear-off, gammons/backgammons, Jacoby, matches to N with Crawford, per-player stats and move log
- Enable opponent skill selection for backgammon in the opponent scene
- Rewrite the tutorial to match the new table, controls and cube/match features
- Add tools/verifyBackgammon.js covering rules, turn generation vs brute force, bear-off table sanity, AI soak and layout bounds
2026-11-25 12:44:57 -07:00