chess:programming:polyglot_book_format:castle

This is an old revision of the document!


Chess - Programming - Polyglot Book Format - Castle


castle is the exclusive or of entries from the RANDOM_CASTLE sub-array.

The offsets are computed as:

White can castle short0
white can castle long1
black can castle short2
black can castle long3

If none of these flags apply then castle=0.

NOTE: These flags are all true in the starting position and are only updated after the appropriate King, Rook or Castling moves.

chess/programming/polyglot_book_format/castle.1641908837.txt.gz · Last modified: 2022/01/11 13:47 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki