check_guess: Compare user input to target word

View source: R/play_wordle.R

check_guessR Documentation

Compare user input to target word

Description

Prompt user for input and provide feedback. Continue to do so until game is won, lost, or exited.

Usage

check_guess(target, n_letters = 5, init = TRUE, remaining = 6)

Arguments

target

Target word of the game

n_letters

Number of letters of the words being used in this game

init

Whether this is the initial guess of the game

remaining

Number of tries remaining before game loss


robe2037/wordle documentation built on March 2, 2023, 2:18 a.m.