|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlayer
A Player of the game.
Each player has a scoring method that can be used to evaluate a given game state. For human players, the scoring function is used when the human plays against a computer opponent. Specifically, when the algorithm tries to identify the best move that the player might make, the evaluation function tells what that best move is to be.
Method Summary | |
---|---|
int |
eval(IGameState state)
Return the evaluation of this game state from player's perspective. |
void |
score(IGameScore score)
Set the scoring method used by player on the game state. |
java.util.Collection<IGameMove> |
validMoves(IGameState state)
Return the player's valid moves given the game state. |
Method Detail |
---|
java.util.Collection<IGameMove> validMoves(IGameState state)
If no moves are available, returns an empty Collection, not null.
state
- game state from which player is to make moves.int eval(IGameState state)
state
- The game statevoid score(IGameScore score)
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |