Skip to content
Michael Lizzio

Wordle Solver

A Wordle solver that ranks guesses, narrows the answers, and can play automatically

  • Python
  • Selenium
  • Beautiful Soup
  • OpenCV
  • PyAutoGUI
  • Letter-frequency scoring

Human-led
Wordle Solver running beside Wordle as it narrows the answer from LATER and NOISY to SWOON

When Wordle first came out, I wanted to know whether I could make a program solve it consistently. My solver filters the possible answers from the green, yellow, and gray feedback, scores the remaining words from their letter frequency, and avoids wasting guesses on repeated letters when new ones would teach it more. Super Wordle goes a step further and reads the browser game so it can play automatically.

Choosing the next word

After every guess, the solver removes words that no longer match the tile feedback. It counts how frequently each letter appears in what remains, then scores candidate guesses from those counts. Duplicate letters are discounted so an early guess can test as many useful letters as possible.

Normal mode and Super Wordle

Normal mode works beside any Wordle game: I enter the five tile colors as numbers and the program recommends another guess. Super mode automates the loop. An early version sampled exact tile colors from screenshots, while a later Selenium version clicked the on-screen keyboard and read each tile's state from the page.

I also added deliberately bad modes that can choose a random guess, a completely random word, or the worst-ranked option, mostly because it was funny to watch.

Examples

The terminal explains its feedback codes, proposes candidate words and reports how many answers remain after each guess.

  • Wordle Solver instructions for entering gray, yellow and green feedback and choosing manual or random guesses
  • Wordle Solver beside the browser after LATER and NOISY, with the terminal reporting four possible answers
  • Wordle Solver narrowing the candidates to SWOON and completing the browser puzzle

Videos

A full play-through of the solver and its features.