play_wordler: Play a game of WORDLE in the console

View source: R/wordler.R

play_wordlerR Documentation

Play a game of WORDLE in the console

Description

Starts an interactive game of WORDLE in the console. Based on WORDLE (https://www.powerlanguage.co.uk/wordle/).

Usage

play_wordler(target_words = NULL, allowed_words = NULL, hard_mode = FALSE)

Arguments

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

Value

No return value. Starts interactive game in console.


DavidASmith/wordler documentation built on April 2, 2022, 6:40 p.m.