Is Wordle always beatable under optimal play?
Is Wordle always beatable under optimal play on easy mode (where you can guess any valid word)?
To put the question more formally, does there exist a deterministic computer program that can play Wordle successfully, without cheating, for every target word? Wordle is a deterministic game besides the hidden target word, and there is a known, finite list of target words, so this question should be decidable. An examination of Wordle's source code shows that there are 2,315 possible target words and 10,657 additional allowed guess words (12,972 total allowed guess words).
Bonus questions
(These are included in case an answer happens to have them; they are not necessary to answer the question.)
Is the answer different for easy mode (where you can guess any valid word) vs hard mode (where your guess has both be a valid word and match the clues you've been given so far)?
If there is such a program, what is the word it uses for it's first guess? (If the program is deterministic, it should always use the same opener)
What is the worst case performance of an optimal program (ignoring the 6 guess limit if there is no optimal program that always wins)?
Best Answer
Yes, any valid Wordle puzzle will always be beatable with optimal play, as proven by Absurdle being solvable in 4 guesses.
Absurdle is an adversarial variant of Wordle where the game changes the secret word after each guess in a way that still matches the information from previous guesses. In the site's own words:
Wordle picks a single secret word at the beginning of the game, and then you have to guess it. Absurdle gives the impression of picking a single secret word, but instead what it actually does is consider the entire list of all possible secret words which conform to your guesses so far. Each time you guess, Absurdle prunes its internal list as little as possible, attempting to intentionally prolong the game as much as possible.
It's important to note that there is no randomness to Absurdle. The game will simulate the worst-case scenario* by considering every possible Wordle answer and picking the one that gives you the least information for any given guess. Therefore, since Absurdle's simulated worst-case can be solved in 4 guesses, we can assume that any "easy mode" Wordle should also be solvable with optimal play.
*Technically Absurdle isn't always the absolute worst case scenario. However, any extra challenge an optimal Absurdle would provide should be offset by 2 extra guesses allowed by Wordle's 6 guess limit
Pictures about "Is Wordle always beatable under optimal play?"



Is there an optimal Wordle strategy?
In Wordle, an optimal strategy means avoiding repeating letters as much as possible. Instead of rushing to try to guess the actual solution on your second try, an ideal second word would repeat no letters from your first guess.Is Wordle solvable?
Wordle throws players a very solvable curveball. Today's Wordle puzzle features a bit of an odd word, but one that is definitely manageable for most players.How do you beat Wordle every time?
Solving Wordle using information theory
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: cottonbro, cottonbro, cottonbro, Dmitry Egorov
