|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the functionality of a engine to play the game of chess.
Method Summary | |
Ply |
computeBestPly()
Compute the best ply for the current position. |
Board |
getBoard()
Get the current board. |
Game |
getGame()
Get the current game. |
javax.swing.JMenu |
getMenu()
Request a menu from the chess engine, where the user can change it's settings. |
boolean |
isWhite()
Get the color of this engine. |
void |
setBoard(Board board)
Set the board. |
void |
setGame(Game game)
Set the current game. |
void |
setWhite(boolean white)
Set the color of the engine. |
boolean |
validateUserPly(Ply ply)
Check if a ply made by the user is valid. |
Method Detail |
public Game getGame()
public void setGame(Game game)
The
- current game.public Board getBoard()
public void setBoard(Board board)
board
- The new board.public boolean isWhite()
white
- true, if the engine operates with the white pieces.public void setWhite(boolean white)
white
- flag to indicate if the engine operates on the white pieces.public Ply computeBestPly()
public boolean validateUserPly(Ply ply)
ply
- The user ply.public javax.swing.JMenu getMenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |