Package org.swtpra1.alphabetaplayer
Interface Evaluator
-
- All Known Implementing Classes:
HippolytaEvaluator
,RelativeTerritoryEvaluator
public interface Evaluator
Interface for an object that evaluates turn objects based on a metric. Always values from player POV.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
evaluate(Board board, int playerId)
Evaluate a board from the POV of the player with playerId.
-
-
-
Method Detail
-
evaluate
float evaluate(Board board, int playerId)
Evaluate a board from the POV of the player with playerId.- Parameters:
board
- the position to be evaluatedplayerId
- the player that moves next- Returns:
- the evaluation of the given position from the players point of view
-
-