public interface ChessPosition
| Modifier and Type | Method and Description |
|---|---|
int |
getHalfMoveClock()
This is the number of halfmoves since the last capture or pawn advance.
|
ChessBoardCoord |
getLastPawnDMove()
If a pawn has just moved two squares ahead, this will be the destination of this pawn.
|
int |
getMoveNumber()
Get the move number.
|
ChessSide |
getNextPlayerTurn()
Get the next player to move.
|
ChessPiece |
getPiece(ChessBoardCoord coordinates)
Get a piece from the board.
|
boolean |
isCastlingAvailable(ChessSide side,
boolean kingside)
Check if castling is available at the current position.
|
int getMoveNumber()
int getHalfMoveClock()
ChessPiece getPiece(ChessBoardCoord coordinates)
coordinates - the piece coordinatesboolean isCastlingAvailable(ChessSide side, boolean kingside)
side - which player should we check (may not be the next player of the position)kingside - which castling side ? True for king side, false for queen side.ChessSide getNextPlayerTurn()
ChessBoardCoord getLastPawnDMove()
Copyright © 2016. All Rights Reserved.