Wordle is an interesting word guessing game. This program plays it very well, taking only 3.51 guesses on average and never more than 5.
- words.txt - contains every word that Wordle uses as a possible solution, as of Jan 2021.
- solver.py - solves the game optimally (subject to several constraints)
You probably only want to use player.py: it will use a pre-generated solution stored in solution.json to play the game for you.
If you want to play Wordle more than once a day, you can use game.py to generate endless games.
I also wrote a blog post describing my approach to solving Wordle.