#' 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) {
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.