assignToPlayers: assignToPlayers

Description Usage Arguments Value See Also Examples

View source: R/poker.R

Description

A standard deal situation beginnng the deal at the left of the dealer.

Usage

1
assignToPlayers(nPlayers, position, y)

Arguments

nPlayers

number of hands to deal as integer in {2, ... , 9}

position

dealer position as integer in {2, ..., nPlayers}

y

cards dealt as vector[2*nPlayers+5] in {1, 2, ..., 52}

Value

players : the hole cards in absolute position as matrix[nPlayers, 4] in {1, 2, ..., 52}
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

See Also

dotTransformToAbsolute

Examples

1
2
3
assignToPlayers(9,9,1:23)
assignToPlayers(9,1,1:23)
assignToPlayers(9,1,c(1:17,24,48:52))

poker documentation built on May 2, 2019, 3:45 a.m.

Related to assignToPlayers in poker...