Learn R Programming

poker (version 0.8.8)

dotFourOfAKindRanker: dotFourOfAKindRanker

Description

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

Usage

dotFourOfAKindRanker(oneHand)

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
.
.
.

Value

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

Examples

Run this code
# NOT RUN {
dotFourOfAKindRanker(c(14,14,14,14,10,7,6))
dotFourOfAKindRanker(sort(c(10,14,6,14,7,14,14),decreasing=TRUE))
# }

Run the code above in your browser using DataLab