Wordle Solver

When Wordle took off, the interesting question to me wasn't "can I win" but "what does an optimal strategy actually look like?" Letter frequency analysis seemed like a natural starting point, and building a tool to test that intuition was more interesting than just playing.

The solver maintains a list of all valid 5-letter words. After each guess, the user enters the color feedback for each letter — correct position, wrong position, or absent. The script filters the remaining candidate list based on that feedback, then scores what's left by letter frequency, prioritizing words that cover the most common remaining letters in the most likely positions. Candidates with duplicate letters are deprioritized when non-duplicate alternatives exist. Top suggestions are printed after each round.

Python
All projects View on GitHub