Learn R Programming

poker (version 0.8.8)

dotTwoPairRanker: dotTwoPairRanker

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

dotTwoPairRanker(oneHand)

Arguments

oneHand

:

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

Value

pairRank : the rank of the pair as vector

Examples

Run this code
# NOT RUN {
dotTwoPairRanker(c(9,7,5,3,3,2,2))
dotTwoPairRanker(c(9,5,5,3,3,2,2))
# }

Run the code above in your browser using DataLab