combos: Create matrix with all possible code combinations

Description Usage Arguments Value Examples

View source: R/combos.R

Description

Create matrix with all possible code combinations

Usage

1
combos(colors, pegs)

Arguments

colors

integer from 1 to 9. Number of colors in game

pegs

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

Value

tibble with all possible code combinations

Examples

1
all_combos <- combos(colors = 8, pegs = 4)

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