edu.lhup.ai
Interface IEvaluator

All Known Implementing Classes:
Evaluator, Evaluator

public interface IEvaluator

An abstract representation of an evaluator that encapsulates the strategy used by a player to evaluate the state of a game.

This software is for educational purposes only.

Author:
Mark Cohen

Method Summary
 int evaluate(IBoard board, IPlayer maxPlayer)
          Provides a mechanism for evaluating the current state of a game.
 

Method Detail

evaluate

public int evaluate(IBoard board,
                    IPlayer maxPlayer)
Provides a mechanism for evaluating the current state of a game.

Parameters:
board - the game that will be evaluated.
maxPlayer - the player whos perspective will be used when evaluating the specified game.
Returns:
the score of the current state of the specified game from the specified player's perspective.