nothing1: indicates strength of your hand when you have nothing

Description Usage Arguments Value Author(s) Examples

View source: R/nothing1.R

Description

finds the strength of your hand when you have nothing. Used by handeval().

Usage

1

Arguments

x

Value

Returns 15^4*highest card + 15^3*next highest + 225*next + 15*next + next

Author(s)

Frederic Paik Schoenberg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- 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){
## 15^4*highest + 15^3*next + 225*next + 15*next + next
y = c(x,rep(0,5))  ## this is in case x has length < 5
a1 = sort(y,decreasing=T)
15*15*15*15*a1[1] + 15*15*15*a1[2] + 225*a1[3] + 15*a1[4] + a1[5]
  }	## end of nothing1

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