BISHOP_TABLE top-level constant

List<int> const BISHOP_TABLE

Lookup table of bishop placements, used by encode().

Built by concatenating the indexes of the two bishops (not by addition).

const [] of String

Implementation

const BISHOP_TABLE = [1, 3, 5, 7, 12, 23, 25, 27, 14, 34, 45, 47, 16, 36, 56, 67];