Learn R Programming

poker (version 0.8.8)

dotHighcard: dotHighcard

Description

Determine the player(s) with a high card hand.

Usage

dotHighcard(cards)

Arguments

cards

:

the 7 card hand as matrix[nPlayers, 14]
col1: rank of card 1 in {2, ... , 14}
col2: suit of card 1 in {1, 2, 3, 4}
col3: rank of card 2
col4: suit of card 2
.
.
.
col13: rank of card 7

Value

winner : absolute position of the winner as vector

See Also

dotHighcardCompare

Examples

Run this code
# NOT RUN {
dotHighcard(matrix(c(2,1,14,2,5,3,6,4,7,1,13,2,14,3,2,3,3,4,5,1,6,2,7,3,13,4,14,1),2,14,byrow=TRUE))
dotHighcard(matrix(c(2,1,3,2,5,3,6,4,7,1,13,2,14,3,2,3,3,4,5,1,6,2,7,3,13,4,14,1),2,14,byrow=TRUE))
# }

Run the code above in your browser using DataLab