ai
Interface Heuristic
- All Known Implementing Classes:
- NegativePieceHeuristic, PawnWeightedHeuristic, PawnWeightedPieceHeuristic, PieceHeuristic, ScaledPieceHeuristic
public interface Heuristic
The Heuristic evaluates a GameState, and returns an evaluation of the current
player's chances of winning; higher is better.
heuristic
int heuristic(GameState currentState)
- Parameters:
currentState
- - Requires:
- currentState not null
- Returns:
- an evaluation of the current player's chances of winning; higher
is better.