Skip to main content

colordle-solver

Suggests guesses for Colordle based on the scores your earlier guesses got.

How it works

Colordle scores a guess as |100 − ΔE2000|, where ΔE2000 is the CIEDE2000 color difference. The solver starts with every color in the list. After each guess it drops any color that would not have produced the score you saw, then suggests the guess expected to leave the fewest colors. Most games take 3 to 6 guesses.

Install

pip install .            # or: pip install -e ".[test]" for development

Use

colordle                       # play along: type each score the game gives you
colordle --simulate 20         # test on random answers
colordle --calibrate game.json # compare predicted scores with a real game

Gettting the latest color list

The package ships with a copy of the list. To download the newest one from the color-name API:

colordle-update                  # saves it to your user data folder
colordle                         # now uses the downloaded list automatically
colordle --bundled               # go back to the shipped list for one run
colordle-update -o mylist.json   # or save it somewhere else and pass it in

The downloaded lists is saved to %LOCALAPPDATA%\colordle-solver\colornames.json on Windows and ~/.local/share/colordle-solver/colornames.json elsewhere. Delete that file to go back to the bundled list for good. If a download fails, your existing list is left as it was.

To report a guess you chose yourself, type Color Name = 72.4.

From Python:

from colordle_solver import Solver

s = Solver.from_bundled()
g = s.suggest()
s.record(g, 63.2)
print(s.remaining[:10])

Benchmark

Play a game against every color in the list and see how the solver does:

colordle --benchmark                  # every color (about 10-40 minutes, depending on CPU)
colordle --benchmark --sample 1000    # a quick estimate from 1,000 random colors
colordle --benchmark --workers 4      # limit how many CPU cores it uses
colordle --benchmark --fresh          # start over instead of resuming

It prints the average and median number of guesses, how many games took each number of guesses, and the worst and best colors. Every result is saved to benchmark.csv as it finishes (change with --out), so you can open it in a spreadsheet. If you stop a run with Ctrl+C, the same command picks up where it left off. Use --fresh after changing the solver, otherwise old results get mixed with new ones.

Opening guess

The best first guess is the same every day for a given list, so it is worked out once and cached. The bundled list's opener (Cosmic Void) ships in data/openers.json, and colordle-update works out the opener for each list it downloads. If you replace the bundled list, run python scripts/build_openers.py (about 40 seconds) to regenerate it. A test fails if you forget.

Credits

The color list comes from meodai/color-names (MIT licence, © 2017 David Aerne). Its licence is in src/colordle_solver/data/LICENSE-color-names.

Metadata

Release files for colordle-solver 0.1.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 colordle-solver 0.1.0
File Size Uploaded Provenance Actions
colordle_solver-0.1.0.tar.gz 338.9 kB With provenance Details for colordle_solver-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colordle-solver 0.1.0
File Interpreter ABI Platform Actions
colordle_solver-0.1.0-py3-none-any.whl Python 3 none any Details for colordle_solver-0.1.0-py3-none-any.whl

Total release size: 689.6 kB

Release files / colordle_solver-0.1.0.tar.gz

Download URL colordle_solver-0.1.0.tar.gz
Size 338.9 kB
Tags Source
SHA-256 checksum
How to use checksums
180fdce91a1f7b313cedbea00e843318d88696241d8e05666b7c920c3aeafe60
BLAKE2b-256 checksum
How to use checksums
f17e912151b2ae8efd6daaa57e24423214613a52da9d406a83d1a803ca9278a3
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 23, 2026.

Transparency log

Release files / colordle_solver-0.1.0-py3-none-any.whl

Download URL colordle_solver-0.1.0-py3-none-any.whl
Size 350.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3daae7816ca283d66ad2955b5952a1a56b9887b3f5f043cb8f7caf2b2c70f82
BLAKE2b-256 checksum
How to use checksums
e2af17930352ff575e930692ed6b356af9767072d995590ea31b8eae6d9184dd
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 23, 2026.

Transparency log

Security for colordle-solver 0.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for colordle_solver-0.1.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 23, 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

0.1.0 This release

2 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