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

Next revision
Previous revision
chess:programming:polyglot_book_format:file_format [2022/01/11 13:29] – created peterchess:programming:polyglot_book_format:file_format [2022/01/11 14:14] (current) peter
Line 1: Line 1:
 ====== Chess - Programming - Polyglot Book Format - File Format ====== ====== Chess - Programming - Polyglot Book Format - File Format ======
 +
 +Polyglot files are usually named with a **.bin** extension.
 +
 +The files contain one or more entries with each entry having the following information:
 +
 +<code cpp>
 +struct entry_t {
 +   uint64_t key;
 +   uint16_t move;
 +   uint16_t weight;
 +   uint32_t learn;
 +};
 +</code>
 +
 +<WRAP info>
 +**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>
 +struct entry_t {
 +   uint64_t key;
 +   uint16_t move;
 +   uint16_t count;
 +   uint16_t n;
 +   uint16_t sum;
 +};
 +</code>
 +
 +  * This still represents the same data.
 +
 +</WRAP>
  
chess/programming/polyglot_book_format/file_format.1641907796.txt.gz · Last modified: 2022/01/11 13:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki