Class Board
java.lang.Object
io.github.wolfraam.chessgame.board.Board
- All Implemented Interfaces:
Serializable,Cloneable
The chess board.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCastle(CastleMoveType castleMoveType) clone()static Boardstatic BoardgetASCII()getFen()intgetSquares(Piece piece) booleanbooleanbooleanbooleanisEnPassant(Square from, Square to) <T> TplayMoveAndRollBack(Square from, Square to, PieceType promotion, Supplier<T> supplier) booleansquareIsEmpty(Square square)
-
Method Details
-
fromFen
-
fromInitialPosition
-
canCastle
-
clone
-
getASCII
-
getFen
-
getFenSmall
-
getFullMoveCount
public int getFullMoveCount() -
getInitialFen
-
getOccupiedSquares
-
getPiece
-
getSideToMove
-
getSquares
-
isDrawFiftyMoveRule
public boolean isDrawFiftyMoveRule() -
isDrawInsufficientMaterial
public boolean isDrawInsufficientMaterial() -
isDrawThreefoldRepetition
public boolean isDrawThreefoldRepetition() -
isEnPassant
-
playMove
-
playMoveAndRollBack
-
squareIsEmpty
-