dotFlushRanker: dotFlushRanker

Description Usage Arguments Value Examples

View source: R/poker.R

Description

Return the ranks of the 5 highest cards in the flush.

Usage

1
dotFlushRanker(cardsRow)

Arguments

cardsRow

:

one 7 card hand as vector[14]
col1: rank of card 1 in {2, ... , 14}
col2: suit of card 1 in {1, 2, 3, 4}
col3: rank of card 2
col4: suit of card 2
.
.
.
col13: rank of card 7
col14: suit of card 7

Value

flushRank : the rank of 5 high cards in flush as vector[5]
col1: suit of card 1 in {2, ... , 14}
.
.
.
col5: suit of card n in {2, ... , 14}

Examples

1
2
dotFlushRanker(c(2,1,2,2,5,2,7,2,8,2,9,2,11,1))
dotFlushRanker(c(2,1,2,2,5,2,7,2,8,2,9,2,11,2))

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

Related to dotFlushRanker in poker...