Description Usage Arguments Value See Also Examples
Assemble the 7 card hands.
1 | hand(players, board)
|
players |
:
| ||||||||||
board |
the board cards as vector[5] in {1, 2, ..., 52} |
cards : the 7 card hand as matrix[nPlayers, 14] | |
col1: rank of card 1 in {2, ... , 14} | |
col2: suit of card 1 in {1, 2, 3, 4} | |
col3: rank of card 2 | |
col4: suit of card 2 | |
. | |
. | |
. | |
col13: rank of card 7 | |
col14: suit of card 7 |
dotTransformToRank
and dotTransformToSuit
1 2 |
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
[1,] 2 1 3 1 7 2 8 2 9 2 10 2 11
[2,] 4 1 5 1 7 2 8 2 9 2 10 2 11
[3,] 6 1 7 1 7 2 8 2 9 2 10 2 11
[4,] 8 1 9 1 7 2 8 2 9 2 10 2 11
[5,] 10 1 11 1 7 2 8 2 9 2 10 2 11
[6,] 12 1 13 1 7 2 8 2 9 2 10 2 11
[7,] 14 1 2 2 7 2 8 2 9 2 10 2 11
[8,] 3 2 4 2 7 2 8 2 9 2 10 2 11
[9,] 5 2 6 2 7 2 8 2 9 2 10 2 11
[,14]
[1,] 2
[2,] 2
[3,] 2
[4,] 2
[5,] 2
[6,] 2
[7,] 2
[8,] 2
[9,] 2
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
[1,] 2 1 2 2 10 4 11 4 12 4 13 4 14
[2,] 3 1 3 2 10 4 11 4 12 4 13 4 14
[3,] 4 1 4 2 10 4 11 4 12 4 13 4 14
[4,] 5 1 5 2 10 4 11 4 12 4 13 4 14
[5,] 6 1 6 2 10 4 11 4 12 4 13 4 14
[6,] 7 1 7 2 10 4 11 4 12 4 13 4 14
[7,] 8 1 8 2 10 4 11 4 12 4 13 4 14
[8,] 9 1 9 2 10 4 11 4 12 4 13 4 14
[9,] 10 1 10 2 10 4 11 4 12 4 13 4 14
[,14]
[1,] 4
[2,] 4
[3,] 4
[4,] 4
[5,] 4
[6,] 4
[7,] 4
[8,] 4
[9,] 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.