Description Usage Arguments Value Examples
This function calls ps-eval
via system and uses string manipulation to convert
the output into a tidy dataframe.
1 |
... |
Hands to be evaluated |
board |
The board |
verbose |
If |
A dataframe with the following columns
hand: One of the hands specified in ...
equity: The equity of the hand in percent
wins: number of wins in the iteration through the possibility space
ties: number of wins that have to be added to wins in order to respect ties in the equity calculation. For the evaluation of two hands, this will be half the number of ties.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.