dotHighcard: dotHighcard

Description Usage Arguments Value See Also Examples

View source: R/poker.R

Description

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

Usage

1
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
col14: suit of card 7

Value

winner : absolute position of the winner as vector

See Also

dotHighcardCompare

Examples

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

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

Related to dotHighcard in poker...