Commit Graph

3 Commits

Author SHA1 Message Date
Brian Fertig 9c72f9f215
Allow Draw in Three Shuffles before shuffles are spent
- `canDraw()` no longer requires `shufflesLeft === 0`, so the single Draw can be used at any point while buried cards remain.
- Update status, float-text, and tutorial copy to describe Draw as always available instead of gated behind exhausting shuffles.
- Adjust verification test to assert Draw is open with shuffles still remaining.
2026-11-30 19:18:46 -07:00
Brian Fertig 5ca7dce7a0
Fix Three Shuffles and a Draw to start aces on foundations
- Aces now begin on the four foundations; only the remaining 48 cards are dealt into fans, yielding 16 even fans of three instead of 17 fans plus a single.
- Update engine comments, game blurb, and tutorial text to match the corrected rules.
- Adjust verification checks to assert ace placement, 16 uniform fans, and 17-fan layout fit after a Draw.
2026-11-27 16:04:53 -07:00
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