|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectknockabout.search.SimpleHeuristic
This is the basic heuristic used for my first tests.
Constructor Summary | |
SimpleHeuristic()
|
Method Summary | |
float |
computeHeuristic(GameState state)
Returns a float that is proportional to the difference of the sum of the values of all the dies that are not in the gutter for each team. |
static int |
sumValues(java.util.List diesNotInGutter)
Utility function sum the curVals on the dies in the set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleHeuristic()
Method Detail |
public float computeHeuristic(GameState state)
computeHeuristic
in interface Heuristic
state
- A knockabout state
public static int sumValues(java.util.List diesNotInGutter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |