play_wordler | R Documentation |
Starts an interactive game of WORDLE in the console. Based on WORDLE (https://www.powerlanguage.co.uk/wordle/).
play_wordler(target_words = NULL, allowed_words = NULL, hard_mode = FALSE)
target_words |
character vector of potential target words for the game. A word will be randomly selected from this vector as the target word to be guessed. Defaults to words used by the WORDLE game online (?wordler::wordle_answers) if not provided. |
allowed_words |
character vector of valid words for the guess. Guess must be in this vector to be allowed. Defaults to words used by the WORDLE game online (?wordler::wordle_allowed) if not provided. |
hard_mode |
logical flag indicating if hard mode should be used. In hard mode any revealed hints must be used in subsequent guesses |
No return value. Starts interactive game in console.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.