ChessBoardInterfaceExtension extension
Methods
-
canRedo(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Check if user can redo the last undone move. -
canUndo(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Check if user can undo the last move. -
getCastlingRights(
) → String -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
-
getPiece(
Position position) → ChessPiece? -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Get the piece at the specified position. -
getValidMoves(
Position from) → List< Position> -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Returns a list of valid moves for the selected piece, to render in the ChessBoardWidget. -
isCheckmate(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the game is in a checkmate state. turn is the player loses the game -
isEligibleForPromotion(
Position position) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if a piece is eligible for promotion. -
isFiftyMoveDraw(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the game is in a draw state due to the fifty-move rule. -
isInsufficientMaterial(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the game is in a draw state due to insufficient material. -
isKingInCheck(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the king is in check. -
isStalemate(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the game is in a stalemate state. -
isThreefoldRepetition(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the game is in a draw state due to threefold repetition. -
isTimeOut(
) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Checks if the game is in time out. turn is the player loses the game -
move(
Position from, Position to) → bool -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Move a piece from one position to another, with complete validations. -
promotePawn(
Position position, PieceType type) → void -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Promotes PieceType.pawn to the specifiedtype. -
redo(
) → void -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Redo the last undone move and restore the forth state. -
switchTurn(
) → void -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Switch turn to the opposite ChessPiece.color / player. -
undo(
) → void -
Available on ChessBoardInterface, provided by the ChessBoardInterfaceExtension extension
Undo the last move and restore the previous state.