reply: Emulates Wordle's Feedback

View source: R/reply.R

replyR Documentation

Emulates Wordle's Feedback

Description

Given guess and actual answer, this function computes a character string of length 5. 't' corresponds to green, 'f' to grey, and 'p' to yellow.

Usage

reply(guess, ans)

Arguments

guess

character, the guess to check

chosen

character, the correct answer

Value

character

References

https://stackoverflow.com/a/71326031/216064


kweinert/wordlegame documentation built on April 29, 2022, 7:19 p.m.