A fast patience (solitaire) solver written in Rust, where every game is data.
Dealbreaker models solitaire variants as small JSON files and solves them with a single Rust engine — finding winning lines, proving unsolvability, suggesting fair hints, and maximising scores in points games. All search calls release the Python GIL.
- 50 built-in games — Klondike, FreeCell, Spider, Yukon, TriPeaks, Poker Squares, and more, plus custom games in JSON.
- Fast — solves 31,980 of 32,000 Microsoft FreeCell deals in 13.1 ms mean time, proving
#11982unsolvable in 0.26 s.
Quick start
pip install dealbreaker
from dealbreaker import Solver
solver = Solver.from_preset("freecell")
result = solver.solve(solver.deal_microsoft(1))
print(result["outcome"], len(result["steps"]), "steps")
See the Python API reference and documentation for best(), hint(), validate(), legal_steps(), play_step(), and custom JSON rules.
License
Dual-licensed under MIT or Apache-2.0, at your option.
Metadata
Release files for dealbreaker 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dealbreaker-1.4.0.tar.gz | 267.5 kB | With provenance | Details for dealbreaker-1.4.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| dealbreaker-1.4.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for dealbreaker-1.4.0-cp310-abi3-win_amd64.whl |
| dealbreaker-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for dealbreaker-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| dealbreaker-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for dealbreaker-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| dealbreaker-1.4.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for dealbreaker-1.4.0-cp310-abi3-macosx_11_0_arm64.whl |
| dealbreaker-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for dealbreaker-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 7.3 MB
Release files / dealbreaker-1.4.0.tar.gz
| Download URL | dealbreaker-1.4.0.tar.gz |
|---|---|
| Size | 267.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f2f0efc6b78ee88e63b630a4d3df15caeeb536181058a829badad8ac4f0a9f7
|
|
BLAKE2b-256 checksum How to use checksums |
8b8818f0cb73252132718a815bc98872f616531a8ce4301c33f7d80b3e7de767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / dealbreaker-1.4.0-cp310-abi3-win_amd64.whl
| Download URL | dealbreaker-1.4.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0bd7bc839639bff1626ef7e4b323815ad1223137af6f2793863da81501abf31b
|
|
BLAKE2b-256 checksum How to use checksums |
acae5799347b48b6222566cff7851136d7c861e0666f239907ad61b5249d5561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / dealbreaker-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | dealbreaker-1.4.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e662a62232a5feebbbbe5836cb8362d20b404f00afb11936b4944955876a62ce
|
|
BLAKE2b-256 checksum How to use checksums |
1fade33ab300d827637e87a02786364313612909a2befbb1edc1b5bc84f82c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / dealbreaker-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | dealbreaker-1.4.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
26c7e1b45a6b2dd3ece1738c7d7bf25e0f3ba1fb1fe0faea65f1fb12977b5213
|
|
BLAKE2b-256 checksum How to use checksums |
08eb0df5bc0400129b81ef8d828212387e2b733d6df4e028e284015a24c2d210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / dealbreaker-1.4.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | dealbreaker-1.4.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
26dd5b1bf4442e98650339baa53c24da09ad3805f444d8f5b49311f5787ace6b
|
|
BLAKE2b-256 checksum How to use checksums |
c2689739ff425ee3e63c0b4db7f11c082c25a60bda37ca5feb03fc1b7ec807fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / dealbreaker-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | dealbreaker-1.4.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
cd0f49e124220d2b7939e13e16ca365ff1a5c35343e1889b0cf7be21cb4fa328
|
|
BLAKE2b-256 checksum How to use checksums |
9892c759e3e4465eefc3b1e70c5b52797812a15c5c30e22cfd50522a517cb75c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for dealbreaker 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for dealbreaker-1.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.