|
Algorithm Development Kit 1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGameScore
Each game state position requires some scoring function.
Method Summary | |
---|---|
int |
score(IGameState state,
IPlayer player)
Method to evaluate a game state from a player's perspective. |
Method Detail |
---|
int score(IGameState state, IPlayer player)
Intended to enable scoring functions from being designed separately
from the specific representation of a game. Higher scores are
more favorable for the given IPlayer
. A maximum score
value (Integer.MAX_VALUE
) implies that the IPlayer
has won
the game. A minimum score value (Integer.MIN_VALUE
) implies
that the opponent has won the game. In general when comparing two
score values returned by this interface, the one with the higher
score reflects a better state position for the given IPlayer
.
state
- The current game state positionplayer
- The player from whose perspective the game state is evaluated
|
Algorithm Development Kit 1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |