chessops
    Preparing search index...

    Class PositionAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • rules:
            | "chess"
            | "antichess"
            | "kingofthehill"
            | "3check"
            | "atomic"
            | "horde"
            | "racingkings"
            | "crazyhouse"

      Returns Position

    Properties

    board: Board
    castles: Castles
    epSquare: undefined | number
    fullmoves: number
    halfmoves: number
    pockets: undefined | Material
    remainingChecks: undefined | RemainingChecks
    rules:
        | "chess"
        | "antichess"
        | "kingofthehill"
        | "3check"
        | "atomic"
        | "horde"
        | "racingkings"
        | "crazyhouse"
    turn: "black" | "white"

    Methods

    • Parameters

      • color: "black" | "white"

      Returns boolean

    • Parameters

      • square: number
      • captured: Piece

      Returns void