Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.pokersource.enum
Class Enumerate  view Enumerate download Enumerate.java

java.lang.Object
  extended byorg.pokersource.enum.Enumerate

public class Enumerate
extends java.lang.Object

Algorithms for enumerating or sampling the outcomes of a poker hand matchup.


Field Summary
static int GAME_5DRAW
           
static int GAME_5DRAW8
           
static int GAME_5DRAWNSQ
           
static int GAME_7STUD
           
static int GAME_7STUD8
           
static int GAME_7STUDNSQ
           
static int GAME_HOLDEM
           
static int GAME_HOLDEM8
           
static int GAME_LOWBALL
           
static int GAME_LOWBALL27
           
static int GAME_OMAHA
           
static int GAME_OMAHA8
           
static int GAME_RAZZ
           
 
Constructor Summary
Enumerate()
           
 
Method Summary
static void main(java.lang.String[] args)
          A simple test of Enumerate methods.
static void PotEquity(int gameType, int nsamples, int[][] pocketRanks, int[][] pocketSuits, int[] boardRanks, int[] boardSuits, int[] deadRanks, int[] deadSuits, double[] ev)
          Compute all-in pot equity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling.
static void PotEquity(int gameType, int nsamples, long[] pockets, long board, long dead, double[] ev)
          Compute all-in pot equity 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
 

Field Detail

GAME_HOLDEM

public static int GAME_HOLDEM

GAME_HOLDEM8

public static int GAME_HOLDEM8

GAME_OMAHA

public static int GAME_OMAHA

GAME_OMAHA8

public static int GAME_OMAHA8

GAME_7STUD

public static int GAME_7STUD

GAME_7STUD8

public static int GAME_7STUD8

GAME_7STUDNSQ

public static int GAME_7STUDNSQ

GAME_RAZZ

public static int GAME_RAZZ

GAME_5DRAW

public static int GAME_5DRAW

GAME_5DRAW8

public static int GAME_5DRAW8

GAME_5DRAWNSQ

public static int GAME_5DRAWNSQ

GAME_LOWBALL

public static int GAME_LOWBALL

GAME_LOWBALL27

public static int GAME_LOWBALL27
Constructor Detail

Enumerate

public Enumerate()
Method Detail

PotEquity

public static void PotEquity(int gameType,
                             int nsamples,
                             int[][] pocketRanks,
                             int[][] pocketSuits,
                             int[] boardRanks,
                             int[] boardSuits,
                             int[] deadRanks,
                             int[] deadSuits,
                             double[] ev)
Compute all-in pot equity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling.


PotEquity

public static void PotEquity(int gameType,
                             int nsamples,
                             long[] pockets,
                             long board,
                             long dead,
                             double[] ev)
Compute all-in pot equity of each player's hand, either by complete enumeration of outcomes or by monte carlo sampling.


main

public static void main(java.lang.String[] args)
A simple test of Enumerate methods. Compare to "pokenum -h ks kh ad td 9c 8c -- kd jd th / As 2h".