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 $

Field Summary
 
Fields inherited from interface chesspresso.position.ImmutablePosition
ALL_CASTLES, BLACK_CASTLE, BLACK_LONG_CASTLE, BLACK_SHORT_CASTLE, NO_CASTLES, WHITE_CASTLE, WHITE_LONG_CASTLE, WHITE_SHORT_CASTLE
 
Method Summary
 boolean canRedoMove()
           
 boolean canUndoMove()
           
 void doMove(Move move)
           
 void doMove(short move)
           
 short[] getAllMoves()
           
 Move getLastMove()
           
 short getLastShortMove()
           
 short getMove(int from, int to, int promoPiece)
           
 java.lang.String getMovesAsString(short[] moves, boolean validateEachMove)
           
 boolean redoMove()
           
 boolean undoMove()
           
 
Methods inherited from interface chesspresso.position.MutablePosition
clear, set, setCastles, setHalfMoveClock, setPlyNumber, setSqiEP, setStart, setStone, setToPlay
 
Methods inherited from interface chesspresso.position.ImmutablePosition
getCastles, getFEN, getHalfMoveClock, getHashCode, getPlyNumber, getSqiEP, getStone, getToPlay, hashCode, isLegal, isStartPosition, validate
 

Method Detail

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)