Solving Wordle using information theory

10,288,754
0
Published 2022-02-06
An excuse to teach a lesson on information theory and entropy.
Special thanks to these supporters: 3b1b.co/lessons/wordle#thanks
Help fund future projects: www.patreon.com/3blue1brown
An equally valuable form of support is to simply share the videos.

Contents:
0:00 - What is Wordle?
2:43 - Initial ideas
8:04 - Information theory basics
18:15 - Incorporating word frequencies
27:49 - Final performance

Original wordle site:
www.powerlanguage.co.uk/wordle/

Music by Vincent Rubinetti.
www.vincentrubinetti.com/

Shannon and von Neumann artwork by Kurt Bruns.
www.instagram.com/p/CZpRKhMJnD6/

Code for this video:
github.com/3b1b/videos/tree/master/_2022/wordle

These animations are largely made using a custom python library, manim. See the FAQ comments here:
www.3blue1brown.com/faq#manim
github.com/3b1b/manim
github.com/ManimCommunity/manim/

You can find code for specific videos and projects here:
github.com/3b1b/videos/

Thanks to these viewers for their contributions to translations
German: Thadaeus, styrix560, wolfsgier

------------------

3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe: 3b1b.co/subscribe

Various social media stuffs:
Website: www.3blue1brown.com/
Twitter: twitter.com/3blue1brown
Reddit: www.reddit.com/r/3blue1brown
Instagram: www.instagram.com/3blue1brown_animations/
Patreon: patreon.com/3blue1brown
Facebook: www.facebook.com/3blue1brown

All Comments (21)
  • @leumasarc4180
    Imagine Grant's friend innocently telling him that his Wordle opener was "weary", only for him to publish a 30-minute essay on why that's stupid a week later😅
  • @RazAnime
    creating an algorithm for this and comparing them against each other sounds like it would have made a great programming competition
  • @lindybeige
    The position of letters is a factor. For example, I prefer TALES over SALET ( SALET is recommended by others who have done computer analysis of this game) because if I do NOT get a green S, then that rules out a huge number of plural four-letter nouns with an S on the end, like BOOMS. Note that I am getting a lot of information out an absence of a match there. Though Y is a fairly rare letter, it turns up at the end of a lot of five-letter words. Letters like L, R and H are important beyond their commonness because they often combine with other consonants as in BLAND, PROSE, and CHAIR.
  • @Paul_MacK
    Never have I ever been tricked into enjoying a math class like this. I wish I had you instead of all my college professors
  • @sbyrfang2744
    Interesting video, real good stuff. Gonna keep using PENIS but this was really cool and informative!
  • Grant: “this video’s getting kinda long.”
    Me: “what are we at, like 10? 15 minutes? He’s got plenty of time!”
    Me after checking clock: “oh…”
  • @admiralcapn
    Just realised WORDLE now has a "hard mode" where you MUST use existing information in future guesses (i.e. if you get a green first letter and yellow fourth letter, future guesses HAVE to start with that same first letter and mix that other letter around). Curious how this would affect the amount of information obtained at each guess, particularly with an algorithm looking ahead multiple guesses.
  • @tztztz-vp4ty
    The amount of preparation work in order to produce a video like this is unbelievable.. truly impressive work.
  • @AlexDings
    4:00 note that the list used in Wordle is the exact list of words allowed in international tournament Scrabble. It's called CSW19.
  • I love those sketches you put in when depicting real life situations, like the conversation between Von Neumann and Shannon 12:01!
  • @kilianschabort2354
    A year later and my blind devotion to your original video has paid off. Thank you kindly!
  • This video is so well done.
    The word play at 18:40, the hidden messages in the game at 25:25... This video gives me "Gödel, Escher, Bach" vibes, and that is something that has never happened to me since I read that book. Awesome.
  • @HBMmaster
    thanks for making this. now people will stop asking me to make this video, lol
  • @Hydratz
    On Jun 21, 2023 I put down the word CRANE and to my amazement, it was the word of the day! Its the only word I got on my first try
  • @jonaslarsson5279
    I could've never had forgiven my self had I not played Wordle today. Been using crane since this video came about.
  • @DrTrefor
    Came for the wordle, stayed for the awesome lesson on information theory. Cool!
  • @zangeh
    "we shouldn't let machines rule our lives" -the man writing and using a wordle bot

    Love the video!
  • @williamdavis694
    After 512 days, crane has finally won first try. Thank you
  • @slatodotnet
    This video is why I got my first 1/6 score today 😁😁😁