dotStraightFlushRanker: dotStraightFlushRanker

Description Usage Arguments Value Examples

View source: R/poker.R

Description

Determine the rank of the highest card in a straight flush. This function assumes cards are sorted in ascending order.

Usage

1

Arguments

yTempRow

:

a sorted 7 card hand of numbers as vector[7]
col1: number of card 1 in {1, 2, ... , 52}
col2: number of card 2
.
.
.
col7: number of card 7

Value

straightFlushRank : the top card in the straight flush as integer

Examples

1
2
3
4
5
dotStraightFlushRanker(c(1,2,3,4,5,15,19))
dotStraightFlushRanker(c(9,10,11,12,13,35,42))
dotStraightFlushRanker(c(9,10,11,12,13,14,35))
dotStraightFlushRanker(c(1,2,3,4,13,20,35))
dotStraightFlushRanker(c(9,26,14,15,16,17,35))

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