Summary
Immutable state history enabling undo (one step back) for solitaire games, and full replay for post-game review.
Tasks
Notes
- Opt-in per game: Golf ✓, Pyramid ✓, Blackjack ✗ (would break betting integrity), Gin ✗ (competitive), Hearts ✗
- Memory: 13 tricks × 4 players = 52 state snapshots per Hearts round — acceptable
Summary
Immutable state history enabling undo (one step back) for solitaire games, and full replay for post-game review.
Tasks
history: GameState[]stackundo()pops the last state and re-renders (only available in Golf and Pyramid by default)replay()steps through history array at configurable speed (500ms/step)Notes