Project
Roulette

Solitaire

Drag stacks between piles, and every deal is winnable if you want.

IntermediateWeb appGame12–26hAI-buildable 3/5no setupworth shipping

Klondike with real drag-and-drop of card stacks, undo, and auto-complete when the game is decided. Generating deals that are guaranteed solvable requires actually solving them, which is a satisfying step beyond just shuffling.

UI
Logic
Useful

Hosting · Free forever

Deploys free on GitHub Pages, Cloudflare Pages or Vercel Hobby.

Deploy it and share a link.

Core features · 7

  • Full Klondike rules with tableau, foundations and stock
  • Valid card stacks drag together between piles
  • Invalid moves are refused with the cards returning
  • Unlimited undo
  • Auto-complete when only trivial moves remain
  • Double-click sends a card to its foundation if legal
  • Game state persists across reloads

The interesting part

  • Dragging a stack of cards while keeping the drop target logic clear
  • Undo across moves that reveal face-down cards
  • Determining when a game is decided so auto-complete can trigger

Once it works

  • Generate only winnable deals using a solver
  • Add a hint system
  • Add Spider and FreeCell variants

Suggested stack

reacttypescripttailwinddnd-kitlocalstorage

Track it