Learn R Programming

poker (version 0.8.8)

dotHighcardCompare: dotHighcardCompare

Description

Determine the player(s) with the high card.

Usage

dotHighcardCompare(rankMatrix)

Arguments

rankMatrix

:

the ranks from the 7 card hand as matrix[nPlayers, 7]
col1: rank of card 1 in {2, ... , 14}
col2: rank of card 2
.
.
.

Value

winner : absolute position of the winner as vector

Examples

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

Run the code above in your browser using DataLab