Description Usage Arguments Value Examples
Select index of first active or revealed. If type is "reveal", pick index of active to reveal (always first). If type is "pair", pick index of revealed to pair (always first).
1 | pickerFirst(active, revealed, exclude = NA, type = c("pair", "reveal"))
|
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 | pickerFirst(revealed = 1:2)
pickerFirst(revealed = 1)
pickerFirst(active = rep(1, 5),
revealed = rep(1, 5), type = "reveal")
pickerFirst(active = 1:5,
revealed = 1, exclude = 1, type = "reveal")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.