org.pokersource.enum

Class HoldemHandOrdering


public class HoldemHandOrdering
extends HandValuation

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.
Author:
Michael Maurer <mjmaurer@yahoo.com>

Constructor Summary

HoldemHandOrdering(InputStream stream)
HoldemHandOrdering(String path)

Method Summary

void
fromFile(String path)
void
fromStream(InputStream stream)
Populates self from an input stream.
static void
main(String[] args)

Methods inherited from class org.pokersource.enum.HandValuation

fromFile, fromStream, getValue, greater, greaterEqual, less, lessEqual, main, setValue, toString

Constructor Details

HoldemHandOrdering

public HoldemHandOrdering(InputStream stream)
            throws IOException

HoldemHandOrdering

public HoldemHandOrdering(String path)
            throws IOException

Method Details

fromFile

public void fromFile(String path)
            throws IOException
Overrides:
fromFile in interface HandValuation

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.
Overrides:
fromStream in interface HandValuation

main

public static void main(String[] args)
Overrides:
main in interface HandValuation

PokerSource Home Page - Learn how you can contribute!