This Wordle solver depends on the output from my WordleDictionaryCreator repo. See that repo for a detailed description of the dictionary object used in this solver.
The basic approach to solve the daily puzzle here is:
For each word guess:
- Record which letters are green, yellow, and gray.
- Filter the words in the dictionary based on the constraints implied by the colored letters.
- Suggest the most common remaining words in the dictionary for the next guess.
This Python script runs in the terminal and uses stdin and stdout for i/o. It is pretty brittle and ugly as far as getting input is concerned as I was more focussed on the algorithm for solving the puzzle. It'll probably break if you put in too many constraints or conflicting constraints.