flushdraw1: Sees if you have a flush draw.

Description Usage Arguments Value Author(s) Examples

View source: R/flushdraw1.R

Description

Calculates how many you have of the suit of which you have most.

Usage

1

Arguments

x

Suits of your cards and the board cards (together, as a vector).

Value

returns the number you have of a suit, i.e. 4 if you have a flush draw, or 5 (or more) if you have a flush already.

Author(s)

Frederic Paik Schoenberg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x = c(1,2,4,1,3,1,1)
flushdraw1(x)
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(x){
    a1 = mycount1(x)
    max(a1$ct)
  } ## end of flushdraw1

holdem documentation built on May 2, 2019, 9:21 a.m.