chess:programming:polyglot_book_format:castle
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
chess:programming:polyglot_book_format:castle [2022/01/11 13:47] – created peter | chess:programming:polyglot_book_format:castle [2022/01/11 13:54] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Chess - Programming - Polyglot Book Format - Castle ====== | ====== Chess - Programming - Polyglot Book Format - Castle ====== | ||
+ | **Castle** is part of the [[Chess: | ||
- | + | It is the exclusive or of entries from the **RANDOM_CASTLE** sub-array. | |
- | ---- | + | |
- | + | ||
- | **castle** | + | |
The offsets are computed as: | The offsets are computed as: | ||
- | |White | + | ^Color^Castle Side^Offset^ |
- | |white can castle long|1| | + | |White|King-side Castle|0| |
- | |black can castle short|2| | + | |White|Queen-side Castle|1| |
- | |black can castle long|3| | + | |Black|King-side Castle|2| |
- | + | |Black|Queen-side Castle|3| | |
- | If none of these flags apply then castle=0. | + | |
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
+ | |||
+ | * The default value for this field should be 0 if if none of these flags apply; i.e. then castle=0. | ||
+ | |||
</ | </ | ||
- | + | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | </ | ||
+ | |||
+ |
chess/programming/polyglot_book_format/castle.1641908837.txt.gz · Last modified: 2022/01/11 13:47 by peter