Description Usage Arguments Value Examples
Select index of active or revealed to give biggest victory by active. If type is "reveal", pick index of active to reveal (always max unless win is not possible). If type is "pair", pick index of revealed to pair (always max unless win is not possible). If multiple matchups are equally advantageous, pick first.
1 |
active |
numeric vector choices of active player |
revealed |
numeric vector choices revealed by non-active player for next round |
exclude |
integer vector of indices of active to exclude when picking active for type reveal. |
type |
single character, select modality:
|
single numeric
1 2 3 4 5 6 7 8 9 10 | pickerMax(active = 2, revealed = c(3, 1))
pickerMax(active = 1, revealed = 1:2)
pickerMax(active = 1, revealed = 1)
pickerMax(active = 2, revealed = c(3, 1), type = "reveal")
pickerMax(active = 1:5, revealed = c(3, 1), type = "reveal")
pickerMax(active = rep(5, 5), revealed = 1:5, type = "reveal")
pickerMax(active = rep(5, 5), revealed = 1:5,
exclude = 1, type = "reveal")
pickerMax(active = 4, revealed = 4,
exclude = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.