Skip to content

wordleAssistant is a Python program to help you select probe words for Wordle

License

Notifications You must be signed in to change notification settings

saund/wordle-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordle-assistant

wordleAssistant is a Python program to help you select probe words for Wordle.

Think of Wordle as a chess game. At every move, you enter a probe word and the game replies with cues about how the letters of your probe word compare to the letters of the day's answer word.

green : letter in correct position
yellow : letter occurs in the answer word but in a different position
gray : letter does not appear in the answer word

At any point in the game, some potential answer words have been eliminated by the cues so far.
At each stage, some of the potential probe words will be more informative than others in further narrowing down the set of possible answer words.

This assistant conducts look-ahead search to score each candidate probe word for its informativeness.

The assistant computes two or three scores for each candidate probe word:
-average number of remaining allowable answer words given the probe word
-maximum number of remaining allowable answer words given the probe word
-expected number of moves to find answer
If your goal is to find the answer quickly on average, chose the smallest "average" score. But this risks requiring more guesses on some days, or even running out of the 6 guesses allowed. If your goal is to make sure you don't run out of moves, choose the smallest "maximum" score. Usually the rank ordering of probe words is well aligned under each of these scores. When there are no more than 10 possible answer words remaining, use the expected moves score to help you decide which probe word to use next. Sometimes you have to choose between gambling on a possible answer word versus choosing a safer probe word that cannot be an answer but is maximally informative.

Since the initial searches are only one ply deep, the scores returned are not actually optimal. But they are close.

The possible answer words and probe words were collected from the wordle game. The number of possible answer words is 2,315 and the number of possible probe words is 12,972. The English language has a lot of obscure words that you can enter as probes but Wordle is kind enough to select only more common words as possible answers.

wordleAssistant runs in a command line in python3.
For instructions on how to run the program, see the documentation at the beginning of /src/wordleAssistant.py

You can also run wordleAssistant to determine the best opening probe words. This calculation takes about a day to compute on a laptop.

About

wordleAssistant is a Python program to help you select probe words for Wordle

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages