pickerJustMax: Pick Match to Best Revealed by Smallest Margin

Description Usage Arguments Value Examples

View source: R/pickers.R

Description

Select index of active or revealed to give biggest victory by active. If type is "reveal", pick index of active to reveal (always just max unless win is not possible). If type is "pair", pick index of revealed to pair (always just max unless win is not possible).

Usage

1
pickerJustMax(active, revealed, exclude = NA, type = c("pair", "reveal"))

Arguments

active

single numeric

revealed

length 1 or 2 numeric

Value

length 1 numeric value 1

Examples

1
2
3
4
5
6
7
pickerJustMax(active = 2, revealed = c(3, 1))
pickerJustMax(active = 3, revealed = 1:2)
pickerJustMax(active = 3, revealed = 4:5)
pickerJustMax(active = 1, revealed = 1)
pickerJustMax(active = 1, revealed = 5)
pickerJustMax(active = 1:5, revealed = 1:5, type = "reveal")
pickerJustMax(active = 1:5, revealed = rep(3, times = 5), type = "reveal")

CSJCampbell/throwdown documentation built on May 6, 2019, 9:26 a.m.