chessops
    Preparing search index...

    Function pawnAttacks

    • Gets squares attacked or defended by a pawn of the given color on square.

      Parameters

      • color: "black" | "white"
      • square: number

      Returns SquareSet