dotFourOfAKindRanker: dotFourOfAKindRanker

Description Usage Arguments Value Examples

View source: R/poker.R

Description

Determine the rank of the four of a kind and the kicker. This functions assumes ranks are sorted in decreasing order.

Usage

1

Arguments

oneHand

:

the ranks of one 7 card hand as vector[7]
col1: rank of card 1 in {2, ... , 14}
col2: rank of card 2
.
.
.
col7: rank of card 7

Value

fourOfAKindRank : the ranks of the quads and the high kicker as vector
col1: the rank of the quads
col2: the rank of the kicker

Examples

1
2
dotFourOfAKindRanker(c(14,14,14,14,10,7,6))
dotFourOfAKindRanker(sort(c(10,14,6,14,7,14,14),decreasing=TRUE))

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