All Packages Class Hierarchy This Package Previous Next Index
Class com.lotspiech.poker.strategy.Rules
java.lang.Object
|
+----com.lotspiech.poker.strategy.Rules
- public class Rules
- extends Object
This class represents a list of rules for a strategy.
Copyright 2001, 2002 by Jeffrey B. Lotspiech. This program is open source;
it is licensed under the Common Public License Version 0.5.
- Author:
- Jeffrey B. Lotspiech
-
charMask
-
-
COPYRIGHT
-
-
hi
-
-
letters
-
-
lo
-
-
rankMask
-
-
ret
-
-
ruleNo
-
-
rules
-
-
ruleStrings
-
-
suit
-
-
suitMask
-
-
table
-
-
Rules()
- This method was created in VisualAge.
-
Rules(Reader)
- This method was created in VisualAge.
-
Rules(String)
- This method was created in VisualAge.
-
bestDiscard(HandWithDiscard)
- This method was created in VisualAge.
-
compile(String)
- This method was created in VisualAge.
-
getIndex(char)
- This method was created in VisualAge.
-
getLastRule()
- This method was created in VisualAge.
-
main(String[])
- This evaluates a strategy versus a given set of rules.
-
setMasks(HandWithDiscard)
- This method was created in VisualAge.
COPYRIGHT
private static final String COPYRIGHT
rules
private Vector rules
ruleStrings
private Vector ruleStrings
ruleNo
private int ruleNo
letters
private String letters
table
private int table[]
ret
byte ret
rankMask
byte rankMask[]
suitMask
byte suitMask[]
charMask
byte charMask[]
lo
int lo
hi
int hi
suit
int suit
Rules
protected Rules()
- This method was created in VisualAge.
Rules
private Rules(Reader in0) throws IOException, PatternSyntaxException
- This method was created in VisualAge.
- Parameters:
- filename - java.lang.String
Rules
public Rules(String filename) throws IOException, FileNotFoundException, PatternSyntaxException
- This method was created in VisualAge.
- Parameters:
- filename - java.lang.String
bestDiscard
protected void bestDiscard(HandWithDiscard hand) throws Exception
- This method was created in VisualAge.
- Parameters:
- hand - com.lotspiech.poker.HandWithDiscard
compile
public Pattern compile(String rule) throws PatternSyntaxException
- This method was created in VisualAge.
- Parameters:
- rule - java.lang.String
- Returns:
- com.lotspiech.poker.strategy.Pattern
getIndex
public int getIndex(char c) throws PatternSyntaxException
- This method was created in VisualAge.
- Parameters:
- c - char
- Returns:
- int
- Throws: PatternSyntaxException
- The exception description.
getLastRule
protected String getLastRule()
- This method was created in VisualAge.
- Returns:
- java.lang.String
main
public static void main(String args[]) throws Exception
- This evaluates a strategy versus a given set of rules.
- Parameters:
- args - strategy-file rules-file
setMasks
private void setMasks(HandWithDiscard hand)
- This method was created in VisualAge.
- Parameters:
- hand - com.lotspiech.poker.HandWithDiscard
All Packages Class Hierarchy This Package Previous Next Index