View source: R/suggest_guess.R
suggest_guess | R Documentation |
Given current knowledge (including number of guesses and previous guesses/replies), suggest some words for the next guess.
suggest_guess( knowledge, num_guess, n = 1, fitting_only = NA, method = c("prob", "full_entropy", "contrasts", "reply_entropy"), sample_size = 500, with_scores = FALSE, verbose = TRUE )
knowledge |
object of S3 class 'wordle_knowledge' |
num_guess |
numeric, 1..6 |
fitting_only |
logical, use only fitting words as candidates (TRUE) or use single-letter-only words (FALSE) or decide by num_guess (NA, default) |
method |
character, either one of "reply_entropy" (default), "contrasts", "full_entropy", or "prob" |
sample_size |
numeric (default=30), maximum number of candidates to consider |
with_scores |
logical, return words only (FALSE, default), or include scores |
verbose |
logical, print out diagnostic messages (default TRUE) |
Complexity of computation grows quadratically with the sample_size parameter.
updated knowledge object of S3 class 'wordle_knowledge'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.