response: Generates a response, given a code and a guess

Description Usage Arguments Value Examples

View source: R/response.R

Description

Generates a response, given a code and a guess

Usage

1
response(code, guess)

Arguments

code

numeric vector of length 1 to 9

guess

numeric vector of length 1 to 9

Value

named vector of length 2, with names 'black' and 'white'

Examples

1
response(code = c(1, 2, 3, 4), guess = c(1, 2, 4, 3))

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