PIECE_OFFSETS top-level constant Null safety

Map<PieceType, List> const PIECE_OFFSETS

Implementation

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