filter_wordle: Filter dictionary of target words using Wordle logic

filter_wordleR Documentation

Filter dictionary of target words using Wordle logic

Description

Restrict original dictionary of possible words to those that meet criteria based on information about letters that are correct, incorrect, or misplaced in the unknown target word.

Usage

filter_correct(letters, positions, dict = NULL)

filter_incorrect(letters, dict = NULL)

filter_misplaced(letters, positions, dict = NULL)

Arguments

letters

Vector of single-length character strings, indicating the letters that are correct, incorrect, or misplaced.

positions

For filter_correct and filter_misplaced, vector of integers between 1 and 5 that indicates the index within the word where each associated misplaced letter was guessed.

dict

Vector of strings of possible words to match

Value

Character vector of words in dictionary that meet specified criteria


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