Description Usage Arguments Value See Also Examples
Determine the player with the highest straight.
1 | dotStraight(cards, score)
|
cards |
:
| ||||||||||||||||||||
score |
:
|
winner : absolute position of the winner as vector
1 2 3 4 5 6 7 8 9 10 11 | cards <- c(7,1,4,2,4,1,4,3,10,1,11,2,2,2,2,3,3,3,3,3,3,1,1,1,5,5,5)
cards <- c(cards,4,4,4,6,6,6,2,2,2,14,14,14,2,2,2)
cards <- matrix(cards,nrow=3,ncol=14); cards
score <- showdown(cards); score
dotStraight(cards, score)
cards <- c(2,1,4,2,4,1,4,3,10,1,11,2,2,2,2,3,3,3,3,3,3,1,1,1,5,5,5)
cards <- c(cards,4,4,4,6,6,6,2,2,2,14,14,14,2,2,2)
cards <- matrix(cards,nrow=3,ncol=14); cards
score <- showdown(cards); score
dotStraight(cards, score)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.