TurnWord Blog

Five Yes-or-No Questions: The Math Behind Letter Out

Why a letter check beats a word guess, and the one case where it can't help you.

Letter Out gives you five guesses to find a hidden five-letter word. I lost a game of it recently with four words still standing, and when I went back through my moves, the reason turned out to be simple arithmetic. This post walks through that game and the math behind it.

The game in 60 seconds

You get six to eight Guess Letters. A handful of everyday words can be spelled from them, and one of those is the hidden word. The game tells you how many words there are, but not what they are.

Each turn you do one of two things:

  • Check a letter. The game says whether the hidden word has it. Nothing about position, nothing about how many times.
  • Guess a word. Right, and you win. Wrong, and that one word is ruled out.

Both use one of your five guesses. So every move is a question with a yes-or-no answer, and you get five of them. The how-to-play post has the full rules.

A loss, move by move

Hard puzzle #106. The Guess Letters are A, B, K, R, S, U and Y, and the card says 8 Possible Words.

Letter Out at the start of Hard puzzle 106: the letters A, B, K, R, S, U and Y, with 5 guesses left and 8 Possible Words

Guess 1: check B. Not in the word. Three words are ruled out. 5 words left, 4 guesses left.

After checking B: the letter B carries a cross, with 4 guesses left and 5 Possible Words

Guess 2: check Y. In the word. Nothing is ruled out. 5 words left, 3 guesses left.

After checking Y: the card says "Y is in the Target Word. Rules out nothing.", with 3 guesses left and 5 Possible Words

Guess 3: guess USURY. Wrong. 4 words left, 2 guesses left.

After guessing USURY: the card says "USURY isn't the Target Word.", with 2 guesses left and 4 Possible Words

Four words, two guesses. I lost. The hidden word was KAYAK.

Three moves, and each one felt reasonable. So where did the game go?

One question, half the words

Start with what a question can do. A yes-or-no answer can, at best, cut the remaining words in half: half of them fit "yes", half fit "no", and whichever answer comes back, the other half is gone.

With eight words, that works out neatly:

  • First check: 8 words become 4.
  • Second check: 4 become 2.
  • Third check: 2 become 1.
  • Fourth guess: name the word.

Four guesses, with one to spare.

Now compare a word guess. "Is it USURY?" is also a yes-or-no question, but a lopsided one. With eight words, the answer is "no" seven times out of eight, and a "no" removes exactly one word. Played that way, eight words can take eight guesses.

This is the same idea Word Bot uses to rank its early Wordle guesses: prefer the guess that splits the remaining words most evenly. Wordle's colored tiles give many possible answers per guess, and Letter Out gives only two, which makes the arithmetic easy to see.

Picking the best check

The best letter to check is the one that about half the remaining words have. Here are the eight words of puzzle #106, which the game only shows you afterward:

ABYSS, ARRAY, ASSAY, BRASS, BURKA, KAYAK, SASSY, USURY

The Possible Words tab in Game Analytics for puzzle 106: ABYSS, BRASS and BURKA crossed out, USURY struck through, KAYAK in green, and ARRAY, ASSAY and SASSY still standing

And here is how each letter splits them at the start:

LetterWords that have itWords that don't
R44
B35
S53
Y62
K26
U26
A71

R is the perfect first question. A is nearly worthless: seven of the eight words have it, so the likely answer, "yes", rules out one word.

Now my three moves make sense.

B was fine. A 3-to-5 split is close to even. With B gone, five words were left: ARRAY, ASSAY, KAYAK, SASSY and USURY. I still had four guesses, and from there four is enough to be sure of winning.

Y was the mistake. Look at those five words. Every one of them has a Y. The answer could only be "yes", and it ruled out nothing. I had spent a guess to learn something that was already certain. After it, a sure win needed four guesses and I had three. The best possible play from there wins four times in five.

The better question at that point was R or S. R splits the five words 2 to 3 (ARRAY and USURY have it), and S splits them 3 to 2.

USURY made it worse. With five words left, a word guess is the lopsided question again. It removed one word and left four, with two guesses to go. From there no way of playing is sure to win, and the best any player can do is win half the time.

For comparison, the game's Safest Path for this puzzle goes: check R (no), check B (no), check K (yes), guess KAYAK. Four guesses.

The Safest Path tab in Game Analytics for puzzle 106: Check R, Check B, Check K, then Guess KAYAK, with a note that four of the eight words contain R

The catch is that you can't see the list while you play. You have to work the words out from the letters yourself, and the better your list, the better your questions. A letter that seems to be in every word you can think of is exactly the one not to check.

Where the math stops

Halving has a limit, and puzzle #106 contains it.

Look at ASSAY and SASSY. Both are made of exactly the same three letters: A, S and Y. Any letter you check gets the same answer for both, so no check can ever tell them apart. If the hidden word is one of them, you eventually have to guess one, and if you pick wrong you need another guess for the other.

That is why this puzzle can take all five guesses even with perfect play. If the hidden word is SASSY, the safest path goes R, B, K, then ASSAY (wrong), then SASSY.

Groups like this are common. In the current set of 300 Hard puzzles, 215 have at least one group of words that share the same letters, and 23 have a group of three or more, such as PANEL, PENAL and PLANE, or ALGAE, EAGLE and LEGAL. The words don't have to be anagrams. They only have to use the same set of letters.

So the rule has two parts. While checks can still split the words, check. Once the words left are a same-letters group, stop checking and start naming, and make sure you have a guess in hand for each of them.

Easy versus Hard

The same math explains why Hard is less forgiving.

On Easy, all 300 current puzzles can be won for certain in four guesses. You have five, so you can waste one move, like my Y check, and still be safe.

On Hard, 246 of the 300 puzzles need all five guesses to be sure of a win. Only 54 leave a guess to spare. On most Hard puzzles, one check that rules nothing out is enough to lose the guarantee. It doesn't mean you lose. It means you now need some luck.

Your turn

Here is an Easy one to try before you look at the answer. It is puzzle #165.

The Guess Letters are C, E, H, L, O and P. There are 6 Possible Words.

Two questions:

1. Can you list all six words?

2. Which letter is the best first check?

The answer is at the bottom of this post.

Play Letter Out

Letter Out is in TurnWord Labs, where we put new games while we are still tuning them. It is free, and there is nothing to sign up for. After each game, open Game Analytics under the card to compare your moves with the Safest Path. It is the quickest way to see which of your questions were worth asking.

Play Letter Out

Answer to the puzzle

The six words are CELLO, ELOPE, EPOCH, HELLO, LEECH and POOCH.

The best first check is P. Three of the words have it (ELOPE, EPOCH, POOCH) and three don't, so either answer leaves three. No other letter splits them evenly: C, H and L are each in four of the six, and E and O are each in five.