Description Public fields Methods
R6 Class for tracking Wordle game state
R6 Class for tracking Wordle game state
wordscurrent list of candidated words which match all information so far
exactstring representing which letters are known exactly, with a period used to indicate that the letter at this position is unknown
wrong_spotcharacter 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_countnamed vector of known minimum counts
known_countnamed vector of known counts for letters e.g. if 'e' is known only to appear once, then 'known_count = c(e = 1)'
ncharnumber of characters in word Initialize Wordle
new()WordleHelper$new(nchar, words = wordle_dict)
ncharnumber of characters in the word
wordscharacter vector of candidated words Update the internal list of candidate words
update()WordleHelper$update(word, response)
wordthe attempted word that was entered into the system
responsea 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)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.