chess:programming:polyglot_book_format:key
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
chess:programming:polyglot_book_format:key [2022/01/11 13:23] – peter | chess:programming:polyglot_book_format:key [2022/01/11 14:03] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Chess - Programming - Polyglot Book Format - Key ====== | ====== Chess - Programming - Polyglot Book Format - Key ====== | ||
- | The **Key** is a 64-bit Zorbrist hash of a board position. | + | The **Key** is a 64-bit Zorbrist hash of a board position, together with some additional information: |
< | < | ||
Line 11: | Line 11: | ||
* [[Chess: | * [[Chess: | ||
- | * Castle | + | * [[Chess: |
- | * Enpassant | + | * [[Chess: |
- | * Turn | + | * [[Chess: |
</ | </ | ||
Line 97: | Line 97: | ||
---- | ---- | ||
+ | |||
+ | ==== RANDOM_POLYGOT ==== | ||
+ | |||
+ | This is the master array. | ||
<code cpp> | <code cpp> | ||
Line 302: | Line 306: | ||
---- | ---- | ||
- | The array RANDOM_POLYGOT is in fact a concatenation of four sub-arrays: | + | The array **RANDOM_POLYGOT** is in fact a concatenation of four sub-arrays: |
<code cpp> | <code cpp> | ||
Line 310: | Line 314: | ||
RANDOM_TURN | RANDOM_TURN | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== RANDOM_PIECE ==== | ||
<code cpp> | <code cpp> | ||
Line 508: | Line 516: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | ==== RANDOM_CASTLE ==== | ||
<code cpp> | <code cpp> | ||
Line 515: | Line 525: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== RANDOM_ENPASSANT ==== | ||
<code cpp> | <code cpp> | ||
Line 523: | Line 537: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== RANDOM_TURN ==== | ||
<code cpp> | <code cpp> |
chess/programming/polyglot_book_format/key.1641907383.txt.gz · Last modified: 2022/01/11 13:23 by peter