ai
Class PawnWeightedPieceHeuristic

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

public class PawnWeightedPieceHeuristic
extends Object
implements Heuristic

The PawnWeightedHeuristic computes a bunch of values to consider, then ignores most of them because they don't actually help.


Field Summary
 int ENDING_WEIGHT
           
 int PAWN_WEIGHT
           
 int PIECE_WEIGHT
           
 int PUSH_WEIGHT
           
 
Constructor Summary
PawnWeightedPieceHeuristic()
           
PawnWeightedPieceHeuristic(int pawn_weight, int piece_weight, int ending_weight, int push_weight)
           
 
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

PAWN_WEIGHT

public final int PAWN_WEIGHT

PIECE_WEIGHT

public final int PIECE_WEIGHT

ENDING_WEIGHT

public final int ENDING_WEIGHT

PUSH_WEIGHT

public final int PUSH_WEIGHT
Constructor Detail

PawnWeightedPieceHeuristic

public PawnWeightedPieceHeuristic()

PawnWeightedPieceHeuristic

public PawnWeightedPieceHeuristic(int pawn_weight,
                                  int piece_weight,
                                  int ending_weight,
                                  int push_weight)
Method Detail

heuristic

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