Learn R Programming

poker (version 0.8.8)

dotStraightRanker: dotStraightRanker

Description

Returns the rank of the highest card in the straight.

Usage

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

straightRank : the rank of top card in the straight as integer

Examples

Run this code
# NOT RUN {
dotStraightRanker(c(2,3,4,5,6,9,10))
dotStraightRanker(c(2,3,3,4,5,6,10))
dotStraightRanker(c(2,3,4,5,6,7,10))
# }

Run the code above in your browser using DataLab