API: Constants
Important
Treat these values as constants: do not try to change them!
All of these values are exposed in the module wordle_boss.names, and
can thus be imported with this wildcard import:
>>> from wordle_boss.names import *
>>> N
5
They are also attributes of the main package, wordle_boss:
>>> import wordle_boss as wb
>>> wb.N
5
- wordle_boss.names.N: int = 5
Number of letters in a Wordle guess or target word. (Import this value to avoid hardcoding it into your code.)
Attention
There is no publicly available list of all the possible Wordle target
words. Any list, such as that contained in the file
SHORT_LIST, is only an approximation of the
list actually used by the game.
- wordle_boss.names.SHORT_LIST: str
The full path to a file provided with the package containing a list of the most common
N-letter words.This file is commonly used as the list of possible target words. In fact, it is identical to the list used by Absurdle. However, it is shorter than the list used by Wordle, and so will provide somewhat inaccurate analyses of actual Wordle games played on https://nytimes.com.
- wordle_boss.names.LONG_LIST: str
The full path to a file provided with the package containing a list of over 10,000 common and uncommon
N-letter words, i.e. the legal guesses in Wordle. This list is identical to the “expanded list” that can be enabled in Absurdle.
Feedback Values
These three values all represent “feedback” given by the Wordle algorithm to a
guess, or the background colors of the letters of the guess. They should be
used in the feedback argument of wordle_boss.Solver.add_guess(),
and are also used in the return values of wordle_boss.get_response(),
wordle_boss.Solver.get_guesses(), and
wordle_boss.Solver.get_min_feedback().
- wordle_boss.names.FB_ABSENT: int
Represents a letter turned black or gray (⬜), meaning that it is not present in the target word.