solitaire

klondike · monte carlo win probability

Klondike is the most widely played solitaire variant — the one most people simply call "solitaire." Despite its familiarity, the exact probability of winning with optimal play remains an open question in combinatorial game theory.

P(win | perfect play) ≈ 79%   P(win | greedy heuristic) ≈ 10–15%

The gap between perfect play and heuristic play is enormous. Monte Carlo simulation lets us estimate win rates for different automated strategies by sampling thousands of random deals and playing them out with simple decision rules. Below, play a game interactively, then run simulations to compare strategy win rates.

interactive
moves 0
stock passes 0
foundations 0 / 52

monte carlo simulation

Simulate thousands of Klondike deals played with automated greedy strategies. The "foundation-first" strategy always moves to foundations when possible; the "balanced" strategy delays foundation moves when the card might be needed for tableau building. Watch both converge to their true win rates.

games simulated 0
foundation-first
balanced

about the math

The solvability of Klondike solitaire has been studied extensively. With 52 cards dealt into a specific layout, there are roughly 8 × 1067 possible deals. Not all are winnable — even with perfect play, some deals are provably unsolvable due to card ordering.

Bjarnason et al. (2007) used Monte Carlo sampling to estimate that approximately 79% of Klondike deals are solvable with perfect information (all cards visible). With the standard hidden-card rules, the effective win rate drops due to incomplete information.

Yan et al. (2005) studied automated solvers and found that simple greedy strategies win roughly 10–15% of games, while more sophisticated search-based approaches can reach 30–40%. The gap between these rates illustrates how much hidden information and lookahead matter.

The simulation above estimates win rates for two greedy heuristics — neither attempts lookahead or backtracking, making them fast enough to simulate thousands of games in seconds while still revealing meaningful differences in strategy quality.