Onewordle

How it works

One wrong guess, one possible answer

Every puzzle is a wrong guess and its colours, chosen so that only one word in the dictionary could have produced them. Type any word below to see every puzzle it makes. Further down is the code this page actually runs to work that out.

Explore a word

What does a word link to?

The shape system

Every puzzle has a shape

A shape is three numbers that add up to five. G letters are already in place. Y letters are shown but have to move. X letters aren't shown at all, so you have to come up with them. The grid counts every one-answer clue without a grey clash by its greens and yellows. Only the outlined cells go into the game, because playtesting found 1–2 greens and 1–2 yellows the most fun.

The pipeline

From dictionary to daily puzzle

build.py runs these steps once and writes the puzzle files the game loads. Bar lengths use a log scale. Each step names the function below that does it.

    The code

    The actual rules, line by line

    These are the functions running on this page right now. The text in each box is read straight from the running code, so it can't drift from what the page does. build.py does the same maths in Python with numpy so it can check six million pairs in a few seconds, and the check below proves the two agree.

    Check it yourself

    Re-derive every puzzle in your browser

    This runs the code above over every common word as a clue against all 8,636 words: about 22 million colour checks. Then it compares each one-answer clue, its verdict and its difficulty measures with what build.py produced.

    Takes about 20 seconds on a laptop, longer on a phone.