rate_guess: Rate a guess, given a set of available combinations

Description Usage Arguments Value Examples

View source: R/rate_guess.R

Description

Rate a guess, given a set of available combinations

Usage

1
rate_guess(remaining_combos, guess, FUN = max, ...)

Arguments

remaining_combos

matrix of all remaining available combinations

guess

numeric vector with a particular guess

FUN

function used to summarise the number of remaining combinations after a guess followed by a response

...

parameters to be passed on to FUN if any

Value

Summary of the number of combinations we can end up with after making this guess. Default is max(). So, after guessing at a code like 1234, any response will leave us with at most this number of remaining possible combinations.

Examples

1
rate_guess(remaining_combos = combos(2, 2), guess = c(1, 1))

lassehjorthmadsen/masteRmind documentation built on Dec. 21, 2021, 9:40 a.m.