A solver, player and model-evaluation harness for the five-letter word-guessing game, written in Go with only the standard library.
- Strategies, benchmarked. Five ways to choose a guess (maximum information, fewest words expected to remain, best worst case, a letter-frequency heuristic and a look-ahead planner), each played against all 2,315 answers in normal and Hard Mode. The best averages about 3.5 guesses and never fails in normal mode. Every number in the analysis is regenerated by one command, and a test checks the docs still match the data.
- Model evaluation. Language models and decision models such as Clef play the same games from the colours alone and are scored against the best strategy, with held-out answers to separate memory from reasoning, rerouting detection and full transcripts (eval guide).
- Play in the terminal. Play a puzzle yourself with coloured tiles, get suggestions after your own first word, or watch a strategy, a model or a model of human play solve it.
$ wsolve auto --by solver
Wordle #1,973 for 2026-11-13
The entropy strategy plays from the colours alone; the answer is used only to score each guess.
R A I S E β¬β¬π¨β¬π©
L I N G O β¬π¨β¬β¬π¨
M O V I E π©π©β¬π©π©
M O X I E π©π©π©π©π©Each guess earns one of 3β΅ = 243 colour patterns: green for a letter in the right place, yellow for a letter elsewhere in the answer, grey otherwise. The solver keeps the candidates, the answer words that fit every pattern so far. A good next guess is one whose possible patterns divide the candidates into many small groups, because then any outcome leaves little to choose from.
The strategies differ in how they measure that split:
entropy: the most information, in bits, over the patterns;expected: the fewest candidates expected to remain;minimax: the smallest worst-case group;freq: no splitting at all, just the fitting word made of the most common letters;planner: looks ahead and guarantees as many answers as possible within the next three guesses.
The first three score every allowed guess, including words that can't be the answer but split the candidates well, which is how they escape families like _OUND. In Hard Mode, every guess must reuse the letters already revealed, so that escape disappears. A precomputed 2,315 Γ 2,315 table of patterns makes each split an array lookup, so a full comparison runs in a few seconds.
Every answer on the list, at most six guesses; the mean counts solved games.
| Strategy | Mean guesses | Failed | Mean (Hard Mode) | Failed (Hard Mode) |
|---|---|---|---|---|
| entropy | 3.495 | 0 (0.00%) | 3.582 | 12 (0.52%) |
| expected | 3.521 | 0 (0.00%) | 3.605 | 14 (0.60%) |
| minimax | 3.549 | 0 (0.00%) | 3.638 | 13 (0.56%) |
| freq | 3.650 | 22 (0.95%) | 3.650 | 22 (0.95%) |
| planner | 3.593 | 0 (0.00%) | 3.597 | 8 (0.35%) |
The analysis has the method, the full distributions,
charts, the best opener for each strategy (RAISE for all but freq), which
answers each strategy fails, and a discussion of the trade-offs. Reproduce
everything with:
go run ./tools/report # rewrites docs/ and this table
go run ./cmd/wordle-solver bench --strategy all # the same comparison in the terminal
go run ./cmd/wordle-solver bench --strategy all --guesses all # guessing from every valid wordDownload the archive for your system from the
latest release
(macOS, Linux and Windows, on Intel/AMD and ARM), unpack it and put
wordle-solver (or wordle-solver.exe) somewhere on your PATH. On
macOS and Linux the archive also holds wsolve, a shorter name for the same
program; keep it beside wordle-solver.
checksums.txt lists each archive's SHA-256, and in releases after v0.2.0 each archive
has signed build provenance, so you can check it was built from this
repository by its release workflow:
gh attestation verify wordle-solver_*.tar.gz --repo notzenco/wordle-solver.
update checks the checksum but not the provenance. The binaries are not
code-signed:
on macOS, clear the download quarantine with
xattr -d com.apple.quarantine wordle-solver; on Windows, SmartScreen may
ask you to confirm the first run.
Or build from source with Go 1.27 or later:
go install github.com/notzenco/wordle-solver/cmd/wordle-solver@latestTo add the short name after go install, link it beside the binary:
ln -s "$(command -v wordle-solver)" "$(dirname "$(command -v wordle-solver)")/wsolve"On Windows, doskey wsolve=wordle-solver $* adds it for the current
console. From a checkout, use go install ./cmd/wordle-solver. wordle-solver version prints your version, wordle-solver update --check says whether a
newer release exists, and wordle-solver update replaces the binary
with the latest release after checking it against checksums.txt (a build
from a checkout needs --force).
wordle-solver help # every command (wsolve works as a shorter name); 'help COMMAND' or 'COMMAND --help' for its options
wordle-solver play # play today's puzzle yourself: coloured tiles, no hints
wordle-solver play --random # practise on a random answer (offline, not saved)
wordle-solver assist # type your own words; it fills in the colours and suggests the next
wordle-solver assist --manual # the same while playing on the website: you type the colours too
wordle-solver next slate:bygbb # the best next guesses for clues so far, without a game
wordle-solver # solve today's puzzle by itself with the human-like player (looked up, then saved)
wordle-solver auto --by solver # ... with the entropy strategy
wordle-solver auto --by model --model omlx/clef-flash-4bit # ... with a model, through the eval harness
wordle-solver auto --date 2026-11-12 # another day's puzzle (or --id N, or --from N --to M)
wordle-solver sim crazy # watch the human-like player solve a given answer
wordle-solver bench --strategy all # compare the five strategies
wordle-solver stats # the human-like player's record; --mine for your own games
wordle-solver sync # cache every past answer (a few minutes)
wordle-solver auto --offline --id 1500 # use only cached answers; nothing is looked up
wordle-solver clean # delete the saved profile, games, answers, settings and providers
wordle-solver settings # saved defaults and where each value comes from
source <(wordle-solver completion zsh) # tab completion (also bash and fish; see 'help completion')
wordle-solver bench --strategy all --json # JSON for scripts; also stats, providers and settingsauto and assist take --by:
| Approach | Chooses guesses with | Notes |
|---|---|---|
human (default) |
the human-like player model | habits and occasional slips; each run draws a new seed, printed so --seed replays it |
solver |
the entropy strategy | the best in the benchmark |
model |
a model given with --model, through the eval harness |
chat models reply with a word; decision models such as Clef choose from up to 64 words that fit; as in the game, an invalid word is rejected without using a turn (three tries a turn) |
As in the game, a guess that isn't five letters or isn't in the word list
is rejected and doesn't use a turn, whether you type it or a model does.
Every approach chooses from the colours alone. The answer is looked up only
to score guesses, and a model never sees it. Only the human-like player's
games are saved, to its own history; games you play with play go into a
separate history shown by stats --mine. In a terminal, guesses show as
coloured tiles; NO_COLOR=1 or a pipe gives letters and emoji instead.
Each command accepts only its own options, with one or two dashes, before or
after its arguments. The solving commands (auto, assist, sim, bench)
share these:
| Option | Effect |
|---|---|
--hard |
only make guesses Hard Mode allows |
--max N |
plan to finish within N guesses (3β6, default 6); see below for how often it can't |
--target N |
aim to finish on guess N (2β6) |
--sloppy P |
chance of a human slip per guess with guesses to spare (default 0.2, 0 = never) |
--seed N |
make random choices reproducible |
--copy |
copy the share grid to the clipboard |
play, assist and auto look up the day's answer online unless given
--random or --offline; --offline uses only answers already saved, by
earlier games or sync, and says so when one is missing.
Save a default with wordle-solver settings set max 5; wordle-solver help settings lists every key.
In assist, press Enter on an empty line to play the suggestion, or type
back to undo the last word. With --manual, enter the colours the
website showed as g/y/b (or 2/1/0), for example bygbb;
colours that no word could produce with the earlier ones are refused so
you can retype them.
Language models can play against the engine and the entropy strategy:
wordle-solver providers # built-in and saved servers
wordle-solver models ollama
wordle-solver eval --model ollama/llama3.2 --games 10 --seed 42
wordle-solver eval --model omlx/clef-flash-4bit # a decision model, detected automatically
wordle-solver eval --model ollama/llama3.2 --games 200 --jobs 4 # several games at once
wordle-solver eval --resume ~/path/to/run.jsonl # finish an interrupted runResults for the Clef decision model and a small chat model (200 games per row, seed 42; full table and discussion in the eval guide):
| Model | Answers solved | Held-out solved | Matched solved | Guesses per game on answers (entropy: 3.53) |
|---|---|---|---|---|
| Clef Flash, 4-bit | 192/200 | 173/200 | 179/200 | 4.34 |
| Clef Flash, 8-bit | 190/200 | 175/200 | 175/200 | 4.21 |
| Clef, 8-bit | 192/200 | 177/200 | 174/200 | 4.28 |
| Gemma 4 E2B, 4-bit (chat) | 1/200 | 0/200 | 0/200 | 5.97 |
Clef solves 95β96% of official answers but about 8 points fewer on words that were never answers, even when they are as familiar (the matched set): it has learnt the answer list's character, not just common words. The small chat model ignores the colours.
Each run writes a transcript to the evals folder beside your saved data
unless you pass --out. See evaluating models for configuration,
held-out answers, transcripts and rerouting.
The benchmark, sim, eval and anything with --random need no network
access: the answer list ships with the code. Commands that use a published
puzzle (play, assist, auto and their --date, --id and --from
options, and sync) look the answer up in the publicly available
daily-puzzle data (https://www.nytimes.com/svc/wordle/v2/YYYY-MM-DD.json),
using your local date. The answer is used only to score guesses. The
solver still plays from the colours alone, and the output says so.
Fetched answers are cached. Answers added after the original list, such as
MOXIE, join the solver's word list, so they are ordinary candidates. Each
game and the player profile are saved, and rerunning a day shows the saved
game (--fresh replays it, --dry saves nothing). stats summarises the
saved games exactly as they were played. The data lives in wordle-solver
in your user config folder (~/Library/Application Support on macOS,
~/.config on Linux, %AppData% on Windows); set WORDLE_SOLVER_HOME or
pass --home DIR to move it. clean deletes the files the solver wrote,
including settings and saved providers, and keeps eval transcripts. Saves
are merged under a lock, so two runs at once don't lose each other's games.
auto and assist (with the default --by human), sim and plain
bench use a model of how a person plays rather than the strategies above: familiar words, a pair of
favourite openers, occasional slips such as reusing a ruled-out letter, and
a finishing turn drawn from rough human weights. The
human model states every assumption and compares the
model with 2022 results people reported: it averages about 4.3 guesses
against their 4.1, and its results are more tightly bunched. Under
--max below 6 or --hard it drops the slips and pacing and plays carefully.
Over every answer, with wordle-solver bench [option] --seed N for seeds
1, 2 and 3 (ranges across the three seeds):
| Option | Mean guesses when solved | Over the limit or lost |
|---|---|---|
| none | 4.29β4.32 | none |
--max 5 |
3.91β3.94 | none |
--max 4 |
3.70 | 51β63 games (2.2β2.7%) take 5 or 6 guesses; none lost |
--hard |
3.81β3.88 | 6β8 games lost (0.3%) |
gofmt -l . # prints nothing
go vet ./...
go test ./... # about 25 seconds on a multi-core machine: plays every answerCI runs these on Linux, macOS and Windows and cross-compiles every release archive. Releases are versioned by release-please from Conventional Commits; merging its release PR tags a version and attaches binaries.
| Path | What it holds |
|---|---|
internal/wordle |
Scoring, the strategies and benchmark, and the human-like model |
internal/player |
Saved profile, games, answer cache and statistics |
internal/selfupdate |
update: download, checksum check and binary swap |
internal/eval |
The model eval harness: game rules, candidate options, scoring and baselines |
cmd/wordle-solver |
The command-line tool, providers, settings and model adapters |
tools/report |
Reruns the benchmark; regenerates docs/analysis.md, its charts and the table above (its tests check the committed docs match docs/results.json) |
tools/humanref |
Compares the human-like model with reported results (docs/human-model.md) |
scripts/build-release.sh |
Builds the release archives |
The code is MIT licensed (see LICENSE). The data files keep their own terms:
internal/wordle/data/answers.txtis the original public answer list.internal/wordle/data/frequency.txtholds counts for every valid five-letter word that appears in FrequencyWords (OpenSubtitles 2018, by Hermit Dave). It is licensed CC BY-SA 4.0, and so is this derived file.
Wordle is a trademark of The New York Times Company. This project is independent and is not affiliated with or endorsed by it.