|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The abstract representation of a player. A player is capable of playing any
game that implements the IBoard interface.
This software is for educational purposes only.
| Method Summary | |
String |
getDescription()
|
String |
getShortDescription()
|
void |
setCutoff(int cutoff)
Provides a mechanism for specifying the point at which a player's abandons the search for the best move. |
void |
setEvaluator(IEvaluator evaluator)
Provides a mechanism for specifying a player's evaluation strategy. |
void |
takeTurn(IBoard board)
Asks this player to push a move onto the specified game's stack. |
| Method Detail |
public String getDescription()
public String getShortDescription()
public void setEvaluator(IEvaluator evaluator)
IEvaluator interface programmers can create
their own custom evaluators and request that a player use the evaluator
by calling this method.
evaluator - the strategy used by this player in order to
evaluate the current game state.public void setCutoff(int cutoff)
cutoff - an integer limiting the duration of a player's search for
the best move
public void takeTurn(IBoard board)
throws TurnException
IBoard.
board - the IBoard object that this player will make a move
on.
TurnException - if the player attemts to push an invalid
move onto the games stack.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||