knockabout.search
Interface Heuristic

All Known Implementing Classes:
ConfigurableHeuristic, SimpleHeuristic

public interface Heuristic

A heuristic evaluating knockabout states


Method Summary
 float computeHeuristic(GameState gameState)
          Compute the evaluation of a state.
 

Method Detail

computeHeuristic

public float computeHeuristic(GameState gameState)
Compute the evaluation of a state. Any implementation of this heuristic should comply to the implicit requirement that the utility must be in the interval [-1,1]

Parameters:
gameState - A knockabout state
Returns:
Returns a float between 1 and -1. Higher value should correspond to states favor the max player.