powered by
Assume player 1 already has cards. For remaining players, generate Player+Community cards = 2x(nPlayers-1)+5 cards.
dotTestDealer(nPlayers, position, holeCards)
number of hands to deal as integer in {2, ... , 9}
dealer position as integer in {2, ..., nPlayers}
the hand of player 1 as vector[2] in {1, 2, ..., 52}
y : cards dealt in hole as vector[nCards] in {1, 2, ..., 52}
# 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