- // Piece offset is calculated as 64 * (PolyPiece ^ 1) where
- // PolyPiece is: BP = 0, WP = 1, BN = 2, WN = 3 ... BK = 10, WK = 11
- const int PieceOfs[] = { 0, 64, 192, 320, 448, 576, 704, 0,
- 0, 0, 128, 256, 384, 512, 640 };
-
- // book_key() builds up a PolyGlot hash key out of a position