|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the functionality to store a complete game, including access to all the stages of a game.
Method Summary | |
void |
doPly(Ply ply)
Add a new ply to the game. |
Ply |
getLastPly()
Get the last ply. |
int |
getNumberOfPlies()
Get the number of plies in this game. |
boolean |
hasBeenMoved(Position position)
Check, if a piece on a given positon was moved from it's initial position. |
void |
reset()
Reset the game. |
void |
undoLastPly()
Take the last ply back. |
Method Detail |
public void reset()
public void doPly(Ply ply)
public void undoLastPly()
public int getNumberOfPlies()
public Ply getLastPly()
public boolean hasBeenMoved(Position position)
position
- The position to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |