Skip to main content

Dealbreaker

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.

  • 39 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 #11982 unsolvable 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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dealbreaker 1.3.0
File Size Uploaded Provenance Actions
dealbreaker-1.3.0.tar.gz 146.1 kB With provenance Details for dealbreaker-1.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dealbreaker 1.3.0
File Actions
dealbreaker-1.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for dealbreaker-1.3.0-cp310-abi3-win_amd64.whl
dealbreaker-1.3.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.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
dealbreaker-1.3.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for dealbreaker-1.3.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
dealbreaker-1.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for dealbreaker-1.3.0-cp310-abi3-macosx_11_0_arm64.whl
dealbreaker-1.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for dealbreaker-1.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 4.0 MB

Release files / dealbreaker-1.3.0.tar.gz

Download URL dealbreaker-1.3.0.tar.gz
Size 146.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4daa8cadc6ac7df19a29b9f3e5e8b06c6cf3a00c452d3d7f0db2fa4179a67cad
BLAKE2b-256 checksum
How to use checksums
c2f422b7ee4b482efae69cbaff54bb5debf512ffc52678f6233b3550c8983567
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 24, 2026.

Transparency log

Release files / dealbreaker-1.3.0-cp310-abi3-win_amd64.whl

Download URL dealbreaker-1.3.0-cp310-abi3-win_amd64.whl
Size 641.7 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c4c9dc3c7472cbce8b704e23dfbd27730a3384f4c0f7e56c472dd6b5b2b521a1
BLAKE2b-256 checksum
How to use checksums
4976d83332bf1845c4951bf357c186060300be62e6a535391b2ddc7eb5d3a4df
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 24, 2026.

Transparency log

Release files / dealbreaker-1.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL dealbreaker-1.3.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 845.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
47904b7cfd7d8056373aaaffdd4ef4f452eae50aa0e596c62e5c9e4d4d468344
BLAKE2b-256 checksum
How to use checksums
dd2f4f996ced797d23cda10ed2dcadbaf1f6ad06b1b0f4e8f62c694915ce33ef
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 24, 2026.

Transparency log

Release files / dealbreaker-1.3.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL dealbreaker-1.3.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 842.6 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9a9f604b2eeb2f286c517be6c576391827940dc079d8caffb735b88a0b13e7bd
BLAKE2b-256 checksum
How to use checksums
de5f04daa83e127b6d46d37821cc5bd0e44dac008fa327620be6daf9a0eeaf0d
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 24, 2026.

Transparency log

Release files / dealbreaker-1.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL dealbreaker-1.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 768.4 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cad337e57d610fb7266227507de6c410d4eb71de34c74c08cb3303d11e976b8d
BLAKE2b-256 checksum
How to use checksums
a562b3c545a916172f2947fa833a1d1e78c6ff173632f7f1482b4002d35172dd
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 24, 2026.

Transparency log

Release files / dealbreaker-1.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL dealbreaker-1.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 778.3 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2d8987e4d4ae5503a6d1fcdb169fe93727c48d340cd07f442b35e39e72b08676
BLAKE2b-256 checksum
How to use checksums
749618b28d05a1f7e1283c95c489e202ab077d98dfaf579b2bbb459bf4a42810
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 24, 2026.

Transparency log

Security for dealbreaker 1.3.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.

Select from 6 files

Attestation for dealbreaker-1.3.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 24, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.3.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page