User Tools

Site Tools


chess:programming:polyglot_book_format:file_format

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:file_format [2022/01/11 13:32] peterchess:programming:polyglot_book_format:file_format [2022/01/11 14:14] (current) peter
Line 7: Line 7:
 <code cpp> <code cpp>
 struct entry_t { struct entry_t {
-   uint64 key; +   uint64_t key; 
-   uint16 move; +   uint16_t move; 
-   uint16 count+   uint16_t weight
-   uint32 learn;+   uint32_t learn;
 }; };
 </code> </code>
  
 <WRAP info> <WRAP info>
-**NOTE:**  Historically the file format was written as:+**NOTE:**   All integers are stored highest byte first (regardless of size). 
 + 
 +  * The entries are ordered according to key; Lowest key first.  
 + 
 + 
 +Sometimes the file format is shown as:
  
 <code cpp> <code cpp>
 struct entry_t { struct entry_t {
-   uint64 key; +   uint64_t key; 
-   uint16 move; +   uint16_t move; 
-   uint16 count; +   uint16_t count; 
-   uint16 n; +   uint16_t n; 
-   uint16 sum;+   uint16_t sum;
 }; };
 </code> </code>
 +
 +  * This still represents the same data.
  
 </WRAP> </WRAP>
  
chess/programming/polyglot_book_format/file_format.1641907944.txt.gz · Last modified: 2022/01/11 13:32 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki