Skip to content

afontenot/wordle-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordle-solver: a nearly-optimal computer player for Wordle

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.

About

An optimal solution finder for the game Wordle, written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages