User Tools

Site Tools


chess:programming:polyglot_book_format:key

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
chess:programming:polyglot_book_format:key [2022/01/11 13:23] peterchess: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:
  
 <code> <code>
Line 11: Line 11:
  
   * [[Chess:Programming:Polyglot Book Format:Piece|Piece]]   * [[Chess:Programming:Polyglot Book Format:Piece|Piece]]
-  * Castle +  * [[Chess:Programming:Polyglot Book Format:Castle|Castle]] 
-  * Enpassant +  * [[Chess:Programming:Polyglot Book Format:Enpassant|Enpassant]] 
-  * Turn+  * [[Chess:Programming:Polyglot Book Format:Turn|Turn]]
  
 </WRAP> </WRAP>
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      (offset: 780, length:   1) RANDOM_TURN      (offset: 780, length:   1)
 </code> </code>
 +
 +----
 +
 +==== RANDOM_PIECE ====
  
 <code cpp> <code cpp>
Line 508: Line 516:
 }; };
 </code> </code>
 +
 +==== RANDOM_CASTLE ====
  
 <code cpp> <code cpp>
Line 515: Line 525:
 }; };
 </code> </code>
 +
 +----
 +
 +==== RANDOM_ENPASSANT ====
  
 <code cpp> <code cpp>
Line 523: Line 537:
 }; };
 </code> </code>
 +
 +----
 +
 +==== RANDOM_TURN ====
  
 <code cpp> <code cpp>
chess/programming/polyglot_book_format/key.1641907383.txt.gz · Last modified: 2022/01/11 13:23 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki