Learn R Programming

poker (version 0.8.8)

dotFlushRanker: dotFlushRanker

Description

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

Usage

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

Value

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

Examples

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

Run the code above in your browser using DataLab