hand: hand

Description Usage Arguments Value See Also Examples

View source: R/poker.R

Description

Assemble the 7 card hands.

Usage

1
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
col4: suit 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
col14: suit of card 7

See Also

dotTransformToRank and dotTransformToSuit

Examples

1
2
hand(matrix(1:18,9,2,byrow=TRUE),19:23)
hand(matrix(c(1:9,14:22),9,2),48:52)

greenspb/poker documentation built on May 6, 2019, 9:50 p.m.