Description Usage Arguments Value Author(s) Examples
finds the strength of your hand when you have nothing. Used by handeval().
1 | nothing1(x)
|
x |
Returns 15^4*highest card + 15^3*next highest + 225*next + 15*next + next
Frederic Paik Schoenberg
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.