Skip to content

Wordle solver is statistically one of the best wordle solvers. Using the NY Times word list, this solver can solve wordle puzzles within three guesses, 80% of the time.

Notifications You must be signed in to change notification settings

RJTech5/wordle-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wordle-solver

This wordle Solver might be one of the best available wordle solvers. Using the NY Times word list, this solver can solve wordle puzzles within three guesses 80% of the time. In addition, this solver supports any 5-letter word wordle like puzzle.

banner (img generated by DALL-E)

Stats

Solving wordle word list knowing the wordle word list:

  • Average Tries: 3.0099
  • Within Three Tries: 79.395%
  • Fails Excluded Average: 3.00

Solving wordle word list knowing nothing:

  • Average Tries: 3.696
  • Fails Excluded Average: 3.663

Solving all five letter words knowing nothing:

  • Average Tries: 4.17
  • Fails Excluded Average: 4.076

How to use

Run main.py, and type the starting word "spald" (the best wordle word when playing perfectly) into your wordle game.

Type the response by wordle into the command line by using "_" for absent or grey letters, "/" for misplaced or yellow letters, and the actual letter for correct letters. For example, a game may look like the following:

Computer: Type "spald"

wordle's response: ⬛⬛⬛⬛⬛

your response: _____

Computer: Type "tenor"

wordle's response: ⬛🟨🟩🟨⬛

your response: /n/

Computer: Type "money"

wordle's response: 🟩🟩🟩🟩🟩

your response: money

Computer: The word is "money"!

How it works

When using just wordle words, this script will filter words based on all the hints you provide. If multiple words are left, the script will select the word leading to the most eliminations to narrow down possibilities as fast as possible.

When using all five letter words, the program will still filter words based on hints provided but will select the next word from the remaining words based on word usage frequency. This optimizes the algorithm no matter what specific wordle game you are playing.

Untitled drawing (1)

About

Wordle solver is statistically one of the best wordle solvers. Using the NY Times word list, this solver can solve wordle puzzles within three guesses, 80% of the time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages