deal: deal

Description Usage Arguments Value Examples

View source: R/poker.R

Description

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

Usage

1
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

1
2
deal(9,9)
deal(9,1)

Example output

 [1] 46  1 25 44 19  9 36 32 10  5 41 28 11 16 35  3 48 29 34  4  8 26 31
 [1] 45 47 17 51 20 26 13 15 43 10 16 42 46 27  5 21 33 41 48  1  9 18 35

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

Related to deal in poker...