Description Public fields Methods
Wordle Game Engine
Wordle Game Engine
wordscharacter vector of words
target_wordtarget word chosen random during initialisation
targetcharacter vector of letters in target word
attemptsvector of attempted words
responseslist of responses for each attempte
ncharnumber of characters in all words
dark_modelogical. Initialise a WordleGame object
new()WordleGame$new(words, dark_mode = TRUE, debug = FALSE, target_word = NULL)
wordscharacter vector of candidate words
dark_modeif using darkmode, set to TRUE
debuglogical. default FALSE
target_wordspecify the target word instead of choosing randomly. Useful for debugging. Play a word and see what the response is
try()WordleGame$try(word, quiet = FALSE)
wordstring
quietsuppress output? default: FALSE
is_solved()is the game solved?
WordleGame$is_solved()
share()Print a shareable text block showing the attempts
WordleGame$share()
clone()The objects of this class are cloneable with this method.
WordleGame$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.