make_guess: Make a single Wordle guess

View source: R/play_wordle.R

make_guessR Documentation

Make a single Wordle guess

Description

Compare a guess word to a target word and return index positions of correct, incorrect, and misplaced letters. Optionally print guessed letters to console with colors indicating whether letters were correct, incorrect, or misplaced.

Usage

make_guess(target, guess, quiet = FALSE)

Arguments

target

Target of the match

guess

Word to be compared to the target word

quiet

Should guess results be printed to console in the form of color- coded guess letters?

Value

List of length 3. Each list element is a vector of integers indicating index positions for the letters in the guess word in the associated category.


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