Learn R Programming

poker (version 0.8.8)

assignToPlayers: assignToPlayers

Description

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

Usage

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

See Also

dotTransformToAbsolute

Examples

Run this code
# NOT RUN {
assignToPlayers(9,9,1:23)
assignToPlayers(9,1,1:23)
assignToPlayers(9,1,c(1:17,24,48:52))
# }

Run the code above in your browser using DataLab