kingAttacks function

SquareSet kingAttacks(
  1. Square square
)

Gets squares attacked or defended by a king on Square.

Implementation

SquareSet kingAttacks(Square square) {
  assert(square >= 0 && square < 64);
  return _kingAttacks[square];
}