chesspresso.position
Interface MoveablePosition
- All Superinterfaces:
- ImmutablePosition, MutablePosition
- All Known Implementing Classes:
- AbstractMoveablePosition
- public interface MoveablePosition
- extends MutablePosition
- Version:
- $Revision: 1.1 $
- Author:
- $Author: BerniMan $
Methods inherited from interface chesspresso.position.ImmutablePosition |
getCastles, getFEN, getHalfMoveClock, getHashCode, getPlyNumber, getSqiEP, getStone, getToPlay, hashCode, isLegal, isStartPosition, validate |
doMove
public void doMove(short move)
throws IllegalMoveException
IllegalMoveException
doMove
public void doMove(Move move)
throws IllegalMoveException
IllegalMoveException
getLastShortMove
public short getLastShortMove()
throws IllegalMoveException
IllegalMoveException
getLastMove
public Move getLastMove()
throws IllegalMoveException
IllegalMoveException
canUndoMove
public boolean canUndoMove()
undoMove
public boolean undoMove()
canRedoMove
public boolean canRedoMove()
redoMove
public boolean redoMove()
getMove
public short getMove(int from,
int to,
int promoPiece)
getAllMoves
public short[] getAllMoves()
getMovesAsString
public java.lang.String getMovesAsString(short[] moves,
boolean validateEachMove)