Learn R Programming

poker (version 0.8.8)

hand: hand

Description

Assemble the 7 card hands.

Usage

hand(players, board)

Arguments

players

:

the hole cards as matrix[nPlayers, 4]
col1: rank of card 1 in {2, ... , 14}
col2: suit of card 1 in {1, 2, 3, 4}
col3: rank of card 2
board

the board cards as vector[5] in {1, 2, ..., 52}

Value

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

See Also

dotTransformToRank and dotTransformToSuit

Examples

Run this code
# NOT RUN {
hand(matrix(1:18,9,2,byrow=TRUE),19:23)
hand(matrix(c(1:9,14:22),9,2),48:52)
# }

Run the code above in your browser using DataLab