Dealbreaker models solitaire variants as small JSON files and solves them with a single engine — finding winning lines, proving unsolvability, suggesting fair hints, and maximising scores in points games. It aims to cover all French-pack card-pile patience games with meaningful player decisions.
- 50 built-in games — Klondike, FreeCell, Spider, Yukon, TriPeaks, Poker Squares, and more, plus custom games in JSON.
- Runs everywhere — CLI, Rust crate, JavaScript/TypeScript (WebAssembly), Python, and C ABI.
- Fast — solves 31,996 of 32,000 Microsoft FreeCell deals in 7.4 ms mean time, proving
#11982unsolvable (benchmarks).
Quick start
CLI (or download a pre-built binary from Releases):
Docker:
Python (pip install dealbreaker):
=
=
JavaScript / TypeScript (npm install dealbreaker):
import from "dealbreaker";
const solver = ;
const result = solver.;
console.log;
solver.;
See the documentation for Rust, C/Swift/Kotlin, Web Workers, and custom JSON games, or try it directly in your browser with the live web demo.
License
Dual-licensed under MIT or Apache-2.0, at your option.