Learn R Programming

poker (version 0.8.8)

deal: deal

Description

Generate Player+Community cards = 2x(nPlayers)+5 cards.

Usage

deal(nPlayers, position)

Arguments

nPlayers

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

position

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

Value

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

Examples

Run this code
# NOT RUN {
deal(9,9)
deal(9,1)
# }

Run the code above in your browser using DataLab