PIECE_OFFSETS constant

Map<PieceType, List<int>> const PIECE_OFFSETS

Implementation

static const Map<PieceType, List<int>> PIECE_OFFSETS = {
  KNIGHT: [-18, -33, -31, -14, 18, 33, 31, 14],
  BISHOP: [-17, -15, 17, 15],
  ROOK: [-16, 1, 16, -1],
  QUEEN: [-17, -16, -15, 1, 17, 16, 15, -1],
  KING: [-17, -16, -15, 1, 17, 16, 15, -1]
};