R/simulate.R

Defines functions simulate

Documented in simulate

#' Simulate different strategies in variations of Mastermind
#'
#' @param colors integer from 1 to 9. Number of colors in game
#' @param pegs integer from 1 to 9. Number of pegs (slots) in game
#' @param strategy character, one of "Knuth", "Doable"
#' @param n integer, number of simulations to run
#'
#' @return vector with counts of the number of guesses used
#' @export
#'
#' @examples
#' # Not run:
#' simulate(colors = 3, pegs = 2, strategy = "Knuth", n = 10)
#'
simulate <- function(colors, pegs, strategy, n) {

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