ai
Class NegativePieceHeuristic

java.lang.Object
  extended by ai.NegativePieceHeuristic
All Implemented Interfaces:
Heuristic

public class NegativePieceHeuristic
extends Object
implements Heuristic

The PieceHeuristic maximizes the number of pieces controlled.


Field Summary
static int BLOCKED_WEIGHT
           
static int ISOLATED_WEIGHT
           
 
Constructor Summary
NegativePieceHeuristic()
           
 
Method Summary
 int heuristic(GameState currentState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLOCKED_WEIGHT

public static final int BLOCKED_WEIGHT
See Also:
Constant Field Values

ISOLATED_WEIGHT

public static final int ISOLATED_WEIGHT
See Also:
Constant Field Values
Constructor Detail

NegativePieceHeuristic

public NegativePieceHeuristic()
Method Detail

heuristic

public int heuristic(GameState currentState)
Specified by:
heuristic in interface Heuristic
See Also:
Heuristic