Learn R Programming

poker (version 0.8.8)

dotStraightFlushRanker: dotStraightFlushRanker

Description

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

Usage

dotStraightFlushRanker(yTempRow)

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
.
.
.

Value

straightFlushRank : the top card in the straight flush as integer

Examples

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab