Interface MoveablePosition
- All Superinterfaces:
ImmutablePosition, MutablePosition
- All Known Implementing Classes:
AbstractMoveablePosition, Position
- Version:
- $Revision: 1.1 $
- Author:
- $Author: BerniMan $
-
Field Summary
Fields inherited from interface ImmutablePosition
ALL_CASTLES, BLACK_CASTLE, BLACK_LONG_CASTLE, BLACK_SHORT_CASTLE, NO_CASTLES, WHITE_CASTLE, WHITE_LONG_CASTLE, WHITE_SHORT_CASTLE -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoiddoMove(short move) voidshort[]shortshortgetMove(int from, int to, int promoPiece) getMovesAsString(short[] moves, boolean validateEachMove) booleanredoMove()booleanundoMove()Methods inherited from interface ImmutablePosition
getCastles, getFEN, getHalfMoveClock, getHashCode, getPlyNumber, getSqiEP, getStone, getToPlay, hashCode, isLegal, isStartPosition, validateMethods inherited from interface MutablePosition
clear, set, setCastles, setHalfMoveClock, setPlyNumber, setSqiEP, setStart, setStone, setToPlay
-
Method Details
-
doMove
- Throws:
IllegalMoveException
-
doMove
- Throws:
IllegalMoveException
-
getLastShortMove
- Throws:
IllegalMoveException
-
getLastMove
- Throws:
IllegalMoveException
-
canUndoMove
boolean canUndoMove() -
undoMove
boolean undoMove() -
canRedoMove
boolean canRedoMove() -
redoMove
boolean redoMove() -
getMove
short getMove(int from, int to, int promoPiece) -
getAllMoves
short[] getAllMoves() -
getMovesAsString
-