dotHighcardCompare: dotHighcardCompare

Description Usage Arguments Value Examples

View source: R/poker.R

Description

Determine the player(s) with the high card.

Usage

1
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
.
.
.
col7: rank of card 7

Value

winner : absolute position of the winner as vector

Examples

1
2
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))

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