ps_eval: Evaluate hand equities

Description Usage Arguments Value Examples

Description

This function calls ps-eval via system and uses string manipulation to convert the output into a tidy dataframe.

Usage

1
ps_eval(..., board = NULL, verbose = FALSE)

Arguments

...

Hands to be evaluated

board

The board

verbose

If TRUE, print the raw output of ps-eval to the screen. Default is FALSE.

Value

A dataframe with the following columns

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# ---------------- preflop --------------- #

ps_eval("AcAs", "2h7d")
ps_eval("2h2s", "TdJd", "As7s")

# ----------------- flop ----------------- #

ps_eval("AcAs", "2h7d", board = "2c2d2s")

# ----------------- turn ----------------- #

## 2 live overcars
ps_eval("2d2h", "AsKs", board = "4h5h6sTd")

## open ended straight flush draw
ps_eval("AdAh", "6s7s", board = "4s5s2hTh")

# ----------------- river ---------------- #

ps_eval("AdAh", "6s7s", board = "4s5s2hThAc")

GregorDeCillia/pokerstoveR documentation built on May 31, 2019, 9:59 a.m.