Description Public fields Methods
R6 Class for tracking Wordle game state
R6 Class for tracking Wordle game state
words
current list of candidated words which match all information so far
exact
string representing which letters are known exactly, with a period used to indicate that the letter at this position is unknown
wrong_spot
character vector of strings. Each string contains all letters which are known to be part of the word, but do not exist at this particular position
min_count
named vector of known minimum counts
known_count
named vector of known counts for letters e.g. if 'e' is known only to appear once, then 'known_count = c(e = 1)'
nchar
number of characters in word Initialize Wordle
new()
WordleHelper$new(nchar, words = wordle_dict)
nchar
number of characters in the word
words
character vector of candidated words Update the internal list of candidate words
update()
WordleHelper$update(word, response)
word
the attempted word that was entered into the system
response
a vector of colours representing the response from the system to this word. Allowed colours: "green", "yellow", "grey" or "gray"
clone()
The objects of this class are cloneable with this method.
WordleHelper$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.