View source: R/filter_dictionary.R
filter_game | R Documentation |
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.
filter_game(guesses, target, dict = NULL, hide = TRUE)
guesses |
vector of character indicating sequential guesses |
target |
Word to use as comparison to |
dict |
Vector of strings of possible words to match. If NULL, uses |
hide |
If |
List of either a vector of words remaining after filtering or integer indicating the number of words remaining.
target <- "panic" guess <- c("burst", "canoe") filter_game(dict = dictionary, guess, target)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.