Commit Graph

2 Commits

Author SHA1 Message Date
Brian Fertig d341746a8e
Rewrite Freecell and Solitaire Tour with a shared solitaire scene layer
- Add `src/ui/solitaire/` base scene (SolitaireScene), geometry, sound, and stats
  modules so both games share drag/click input, undo/redo, auto-play, hints,
  timer, win cascade, and per-game records.
- Rebuild Freecell ("the Night Study") on the new layer: canvas-baked room art,
  animated rain/lightning/mantel clock, banker's lamp glow, deal card, and a
  brass plaque HUD. Add numbered/daily deals (1..1,000,000) and a resumable
  best-first solver that powers hints plus an honest "still winnable?" verdict;
  safe auto-play sends provably-safe cards home automatically.
- Rebuild Solitaire Tour with five themed rooms (Golf, Klondike, Pyramid, Take
  Fourteen, Three Shuffles), per-leg controllers in `SolitaireTourLegs.js`,
  golf-style scorecard scoring, save/resume, and tournament vs casual rules.
- Refactor both logic engines to a uniform apply()/legalMoves()/snapshot() API
  with plain-object moves, making them Phaser-free and testable headlessly.
- Add `tools/verifyFreecell.js` and `tools/verifySolitaireTour.js` headless
  suites covering rules, random play, solver replay, snapshots/saves, layout
  bounds, and scene decisions.
- Add tutorials (`tutorial.md`) for both games and a Mahjong background video
  asset; fix multi-card drag skip in CardTableScene to check the dragged id set.
2026-11-25 23:59:34 -07:00
Brian Fertig 40efc183fc
Rework Chinese Checkers into "Moonlit Tea Pavilion" with 2–6 player support
- Rewrite the AI (skill 1–5 ladder with lookahead, anti-blocking awareness) and rules engine to support variable seat counts, partner teams, boxed-in detection, and stalemate/turn-cap endings
- Add fully procedural art (room, board, glass marbles, HUD furniture), marble animator, Web Audio sound effects, pause/end dialogs, and a per-seat HUD with progress pips, speech bubbles, and medals
- Enable 1–5 opponent skill selection in OpponentSelectScene and map the game to the "chinese" soundtrack
- Add headless verification suite (topology, rules, AI legality, self-play soak, skill ladder, layout bounds) at tools/verifyChineseCheckers.js
2026-11-25 22:57:14 -07:00