play: Play the game of Mastermind with a given configuration

Description Usage Arguments Examples

View source: R/play.R

Description

Play the game of Mastermind with a given configuration

Usage

1
play(colors, pegs, allow_duplicates = TRUE)

Arguments

colors

integer from 1 to 9. Number of colors in game

pegs

integer from 1 to 9. Number of pegs (slots) in game

allow_duplicates

boolean. TRUE (default) means duplicate colors allowed in code

Examples

1
play(colors = 8, pegs = 4)

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