|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pokersource.enumerate.Enumerate
public class Enumerate
Algorithms for enumerating or sampling the outcomes of a poker hand matchup.
| Constructor Summary | |
|---|---|
private |
Enumerate()
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
A simple test of Enumerate methods. |
static void |
PotEquity(int gameType,
int nsamples,
long[] pockets,
long board,
long dead,
double[] ev)
Compute all-in pot subjectiveAllinEquity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling. |
static void |
PotEquityOrdering(int gameType,
int nsamples,
long[] pockets,
long board,
long dead,
double[] ev,
int[][][] orderKeys,
int[][] orderVals)
Compute all-in pot subjectiveAllinEquity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Enumerate()
| Method Detail |
|---|
public static void PotEquity(int gameType,
int nsamples,
long[] pockets,
long board,
long dead,
double[] ev)
gameType - specifies game (Enumerate.GAME_HOLDEM, etc)nsamples - number of monte carlo samples; if 0, full enumerationpockets - pockets[i] is bitmask of player i's cardsboard - board is bitmask of board cardsdead - dead is bitmask of dead cardsev - output: ev[i] is pot subjectiveAllinEquity of player i
public static void PotEquityOrdering(int gameType,
int nsamples,
long[] pockets,
long board,
long dead,
double[] ev,
int[][][] orderKeys,
int[][] orderVals)
gameType - specifies game (Enumerate.GAME_HOLDEM, etc)nsamples - number of monte carlo samples; if 0, full enumerationpockets - pockets[i] is bitmask of player i's cardsboard - board is bitmask of board cardsdead - dead is bitmask of dead cardsev - output: ev[i] is pot subjectiveAllinEquity of player iorderKeys - output: orderKeys[0][j] corresponds to a particular
relative ordering of the players' hands at showdown, such that
orderKeys[0][j][k] is the relative rank of player k's hand, where rank=0
means best, rank=nplayers-1 means worst, and rank=nplayers indicates a
non-qualifying hand. For high-low games, orderKeys[0][j][k+nplayers]
gives corresponding information for the low hand. Before calling
the method, allocate orderKeys as a new int[1][][].orderVals - output: orderVals[0][j] the number of outcomes
corresponding to the relative rank ordering in orderKeys[0][j]. Before
calling the method, allocate orderVals as a new int[1][].public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||