org.pokersource.enum
Class HoldemHandOrdering
public class HoldemHandOrdering
Defines an ordering (from 'weakest' to 'strongest') of holdem hand groups.
Staring with a sequence of disjoint hand groups G_i (i=1..N), assigns to
each group G_i a numeric value equal to the fraction of all atomic hands in
groups G_1 through G_{i-1}. A typical usage is define the G_i as the 169
canonical hand groups.
void | fromFile(String path)
|
void | fromStream(InputStream stream) - Populates self from an input stream.
|
static void | main(String[] args)
|
HoldemHandOrdering
public HoldemHandOrdering(InputStream stream)
throws IOException
HoldemHandOrdering
public HoldemHandOrdering(String path)
throws IOException
fromStream
public void fromStream(InputStream stream)
throws IOException
Populates self from an input stream. The format is a text file with
whitespace separated tokens; each token represents a hand group.
Comments begin with the '#' character and are terminated by end of line.
The first hand group in the file is the 'least' or 'weakest'; the last
hand group in the file is the 'greatest' or 'strongest'. The hand
groups must be disjoint and their union must include all 1326 atomic
holdem hands.
- fromStream in interface HandValuation
PokerSource Home Page - Learn how you can contribute!