TubeSum ← Transcribe a video

Best Wordle Opener Correction — Full Breakdown & Transcript

0h 10m video Published Feb 13, 2022 Transcribed Aug 10, 2026 3 3Blue1Brown
Intermediate 5 min read For: Puzzle enthusiasts, data scientists, and anyone interested in information theory applied to games.
AI Trust Score 72/100
⚠️ Average / Some Fluff

"Delivers exactly what the title promises — a correction and deeper analysis, though the bug fix is minor."

AI Summary

The video corrects a bug in the Wordle solver code that slightly affected the optimal opening word analysis. It then uses information theory to find the best first guess, revealing that 'crane' is not the best opener. The creator emphasizes the educational value of the process over the specific result.

[00:14]
Bug in Wordle Solver

A bug in the color assignment logic for words with repeated letters caused a slight error in the solver's performance.

[01:56]
Impact on Video Content

The bug affected the distribution of patterns for words with multiple letters, but the main lessons about information theory remain valid.

[02:39]
Correction on Optimal Opener

The optimal first guess changes from 'crane' to other words when the bug is fixed.

[05:18]
Best Opener by Expected Information

Using expected information as a heuristic, 'soare' is the best opener, but it's an obsolete word.

[07:39]
Best Opener by Two-Step Entropy

A two-step search shows 'salet' as the best opener by average score, with 'trace' and 'crate' close behind.

[09:10]
Not for Human Play

The creator advises humans not to use these optimal openers because they are overfit to the official answer list and don't account for human intuition.

Mentioned in this Video

Study Flashcards (5)

What was the bug in the Wordle solver code?

medium Click to reveal answer

A bug in the color assignment logic for words with repeated letters.

00:14

What is the best opening word by expected information?

hard Click to reveal answer

Soare (an obsolete term for a young hawk).

05:18

What is the best opening word by two-step entropy?

hard Click to reveal answer

Salet (an alternate spelling for sallet, a type of helmet).

07:39

Which two words give almost identical performance to the best opener?

medium Click to reveal answer

Trace and Crate.

08:10

What is a key lesson about greedy algorithms from the video?

medium Click to reveal answer

Greedy algorithms may not find the globally best performance; deeper search is needed.

09:55

💡 Key Takeaways

🔧

Information Quantification

Explains the formula for measuring information gain using logarithms to estimate how many times the space of possibilities is halved.

04:50
📊

Best Opener by Simulation

Reveals that Salet is the best opener when simulating all possible games, though it's a rare word.

07:39
⚖️

Greedy vs. Global Optimum

Highlights the limitation of greedy algorithms and the value of deeper search for optimal performance.

09:55

[00:00] or at least trying to solve it, using information theory. a confession, basically I just want to explain a place where I made a mistake.

[00:14] It turns out there was a very slight bug in the code that I was running to recreate Wordle and then run all of the algorithms to solve it and test their performance. so it was easy to miss, and it has only a slight effect that for the most part doesn't

[00:29] Basically it had to do with how you assign a color For example if you guess speed and the true answer is abide, how should you color those two e's from the guess?

[00:43] first e would be colored yellow, and the second one would be colored gray. You might think of that first one as matching up with something from the true answer, By contrast, if the answer was something like erase,

[00:58] both of those e's would be colored yellow, telling you that there is a first e in a different location, and there's a second e also in a different location. then that second one would be gray in the case where the true answer has no second e,

[01:14] but it would be yellow in the case where there is a second e and it's just in Long story short, somewhere along the convention slightly.

[01:27] Basically at some point in the middle of the project I wanted to speed up the value for this pattern between any given pair of words, and you know I just didn't really think it through, and it introduced this slight change.

[01:43] fastest is to pre-compute all those patterns so that everything is just a lookup, especially if you're writing hard to read buggy code to make it happen.

[01:56] As far as how this affects the actual video, I Of course the main lessons about what is information, Every now and then if I'm showing on screen some distribution associated with a given

[02:11] word, that distribution might actually be a little bit off because some of the buckets associated with various patterns should include either more or fewer true answers. be showing a word that had multiple letters that also hit this edge case.

[02:27] But one of the very few things of substance that does change, and that arguably does matter a fair bit, was the final conclusion around how if we want to find the optimal possible score for the wordle answer list,

[02:39] what opening guess does such an algorithm use? from opening with the word crane, which was true only in the sense that the algorithms were playing a very slightly different game.

[02:53] what the theoretically optimal first guess is for this particular list. And look, I know that you know that the point of the video is not

[03:05] to find some technically optimal answer to some random online game. internet trend to sneak attack people with an information theory lesson. But I know how the internet works, and for a lot of people the

[03:21] one main takeaway was what is the best opener for the game wordle. but presumably you can forgive me if I want to add a little correction here. And a more meaningful reason to circle back to all this actually is that

[03:35] and it's interesting as a sublesson in its own right, so that's worth doing here. on the challenge of trying to write an algorithm to solve

[03:49] To my taste that feels a bit like overfitting to a test set, This is why we went through the whole process of looking at relative

[04:02] of how likely each one would be to be included as a final answer. However, for what we're doing here, where we're just trying to find an absolute best performance period, I am incorporating that official list and just shamelessly

[04:17] overfitting to the test set, which is to say we know with certainty whether a word is included or not, and we can assign a uniform probability to each one. particular opening guess, maybe something like my old favorite, crane,

[04:33] And in this context, where we are shamelessly overfitting to the wordle answer list, all that involves is counting how many of the possible answers give each one of these And then of course most of our time was spent on this kind of funny looking formula

[04:50] to quantify the amount of information that you would get from this guess that basically involves going through each one of those buckets and saying how much information would you gain, that has this log expression that is a fanciful way of saying how many times

[05:02] would you cut your space of possibilities in half if you observed a given pattern. measure of how much we expect to learn from this first guess. In a moment we'll go deeper than this, but if you simply search through all 13,000

[05:18] different words that you could start with and you ask which one has the highest expected information, it turns out the best possible answer is soar, which doesn't really look like a real word, but I guess it's an obsolete term for

[05:32] The top 15 openers by this metric happen to look like this, but these are not necessarily the best opening guesses because they're only looking one step in with the heuristic of expected information to try to estimate what the

[05:46] But there's few enough patterns that we can do an exhaustive search two steps in. For example let's say you opened with soar and the pattern you happen to see was the most likely one, all grays, then you can run identical analysis from that point.

[06:01] what's the distribution across all patterns in that restricted case where we're restricted only to the words that would produce all grays for soar, and then we measure the flatness of that distribution using this expected

[06:16] could use as a second guess. and the amount of information we were expected to get from it.

[06:28] And if we wash rinse and repeat and do this for all of the different possible second guesses together with the expected information of each.

[06:43] From there, if you take a weighted average of all those second step values, it gives you a measure of how much information you're likely to gain from the guess

[06:55] When we use this two-step metric as our new means of ranking, Soar is no longer first place, it falls back to 14th, Again, doesn't feel very real, and it looks like it is

[07:12] a British term for a spade that's used for cutting turf. All right, but as you can see, it is a really tight race among all of these top contenders for who gains the most information after those two steps.

[07:25] because information is just the heuristic, it's not telling us the actual score if you What I did is I ran the simulation of playing all 2315 possible

[07:39] Wurtle games with all possible answers on the top 250 from this list. And by doing this, seeing how they actually perform, the one that ends up very marginally with the best possible score turns out to be Salé,

[07:58] which is, let's see, Salé, an alternate spelling for Salé, All right, if that feels a little too fake for you, which it does for me,

[08:10] you'll be happy to know that trace and crate give almost identical performance, so there is one day when you get it right on the first guess,

[08:22] This move from sorting based on the best two-step entropies to sorting based on the lowest average score also shakes up the list, but not nearly as much. For example, Salé was previously third place before it bubbles to the top,

[08:36] If you're curious, you can get slightly better There's a very nice blog post by Jonathan Olson, if you're curious about this, for a few of the starting words based on these optimal algorithms.

[08:55] Stepping back from all this though, I'm told by some people that it quote ruins the game to overanalyze it like this and try to find an optimal opening guess. and it feels inefficient if you don't, but the thing is,

[09:10] I don't actually think this is the best opener for a human playing the game. second guess is for each one of the patterns you see. we are absurdly overfit to the official Wurtle answer list.

[09:26] that list is under the hood, all of this would go out the window. different from what any of these algorithms are doing.

[09:38] We get intuition from things like what are the vowels, and how are they placed. I would actually be most happy if those of you watching this video promptly and instead came out remembering things like how do you quantify information,

[09:55] or the fact that you should look out for when a greedy algorithm falls short of the globally best performance that you would get from a deeper search. For my taste at least, the joy of writing algorithms to try to play games

[10:07] actually has very little bearing on how I like to play those games as a human. the way that we play the game, it's still just a fun word game. It's to hone in our muscles for writing algorithms in more meaningful contexts elsewhere.

More from 3Blue1Brown

View all

⚡ Saved you 0h 10m reading this? Transcribe any YouTube video for free — no signup needed.