Learn R Programming

poker (version 0.8.8)

dotTripRanker: dotTripRanker

Description

Determine the rank of the three of a kind. Note: dotTripRanker requires a hand with a score of 4 (i.e., three of a kind).

Usage

dotTripRanker(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

tripRank : the rank of the pair as vector

Examples

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

Run the code above in your browser using DataLab