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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.pokersource.enum.HandGroup
      extended byorg.pokersource.enum.HoldemHandGroup
          extended byorg.pokersource.enum.HoldemCanonGroup

public class HoldemCanonGroup
extends HoldemHandGroup

A holdem hand group representing sets of starting hands defined using canonical notation: "KK", "AQs", "T9".


Field Summary
 
Fields inherited from class org.pokersource.enum.HandGroup
myhands, myspec
 
Constructor Summary
HoldemCanonGroup(java.lang.String groupSpec)
          Convert canonical holdem starting hand notation to a HoldemCanonGroup object.
 
Method Summary
private  void addOffsuit(int rank1, int rank2)
           
private  void addPair(int rank)
           
private  void addSuited(int rank1, int rank2)
           
static java.util.Iterator allGroups()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.pokersource.enum.HandGroup
getHands, isHandInGroup, toString, toStringAtomic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HoldemCanonGroup

public HoldemCanonGroup(java.lang.String groupSpec)
Convert canonical holdem starting hand notation to a HoldemCanonGroup object.

Method Detail

addPair

private void addPair(int rank)

addSuited

private void addSuited(int rank1,
                       int rank2)

addOffsuit

private void addOffsuit(int rank1,
                        int rank2)

allGroups

public static java.util.Iterator allGroups()

main

public static void main(java.lang.String[] args)