Learn R Programming

poker (version 0.8.8)

dotTestDealer: dotTestDealer

Description

Assume player 1 already has cards. For remaining players, generate Player+Community cards = 2x(nPlayers-1)+5 cards.

Usage

dotTestDealer(nPlayers, position, holeCards)

Arguments

nPlayers

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

position

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

holeCards

the hand of player 1 as vector[2] in {1, 2, ..., 52}

Value

y : cards dealt in hole as vector[nCards] in {1, 2, ..., 52}

Examples

Run this code
# NOT RUN {
dotTestDealer(9,9,c(1,52))
dotTestDealer(9,5,c(1,52))
dotTestDealer(5,2,c(3,42))
# }

Run the code above in your browser using DataLab