|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface has to be implemented by any board implementation.
Method Summary | |
void |
doPly(Ply ply)
Move a piece from one square to another. |
void |
emptyBoard()
Remove all the pieces from the board. |
Board |
getBoardAfterPly(Ply ply)
Return a new board, that results from a given ply. |
Piece |
getPiece(Position position)
Get the piece of a given position. |
void |
initialPosition()
Set the pieces to their initial positions. |
void |
setPiece(Piece piece,
Position position)
Set a piece on a given position. |
Method Detail |
public Piece getPiece(Position position)
position
- The position of the piece.public void emptyBoard()
public void initialPosition()
public void setPiece(Piece piece, Position position)
piece
- The piece to set.position
- The position to set the piece on.public void doPly(Ply ply)
ply
- The move to perform.public Board getBoardAfterPly(Ply ply)
ply
- The ply to perform.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |