assess_guess: Assess a guess against the target word

Description Usage Arguments Details Value

View source: R/wordler.R

Description

Assesses the guess in list game$guess (index from game$guess_count) against the target word in game$target.

Usage

1

Arguments

game

'wordler' game object (as generated by new_wordler).

Details

Adds the assessment to the corresponding list item in game$assess. This assessment should be considered as how the guesses should be displayed to the user and replicates the behaviour of the WORDLE game (https://www.powerlanguage.co.uk/wordle/).

For each letter in each guess, one of the following assessments are made:

Value

'wordler' game object.


wordler documentation built on Feb. 1, 2022, 5:08 p.m.