dotTwoPairRanker: dotTwoPairRanker

Description Usage Arguments Value Examples

View source: R/poker.R

Description

Determine the ranks of the two pairs. Notes: dotTwoPairRanker requires a hand with a score of 3 (i.e., two pairs). This functions works best when ranks are sorted in decreasing order.

Usage

1

Arguments

oneHand

:

a sorted hand with ranks only as vector[7]
col1: rank of card 1 in {2, ... , 14}
col2: rank of card 2
.
.
.
col7: rank of card 7

Value

pairRank : the rank of the pair as vector

Examples

1
2
dotTwoPairRanker(c(9,7,5,3,3,2,2))
dotTwoPairRanker(c(9,5,5,3,3,2,2))

poker documentation built on Aug. 9, 2017, 9:03 a.m.