dotStraightRanker: dotStraightRanker

Description Usage Arguments Value Examples

View source: R/poker.R

Description

Returns the rank of the highest card in the straight.

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

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

Examples

1
2
3
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))

greenspb/poker documentation built on May 6, 2019, 9:50 p.m.