User Tools

Site Tools


chess:programming:polyglot_book_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 [2022/01/10 17:10] peterchess:programming:polyglot_book_format [2022/01/11 14:16] (current) peter
Line 1: Line 1:
 ====== Chess - Programming - Polyglot Book Format - Polyglot Book Format ====== ====== Chess - Programming - Polyglot Book Format - Polyglot Book Format ======
  
-A **PolyGlot** opening book is a collection of triples (Position, Move, Weight).+A **PolyGlot** opening book is a collection of triples (Key, Move, Weight).
  
-  * **Position** is represented by a 64-bit Zobrist hash key, of a Board position.+  * **Key** is a 64-bit Zobrist hash key, of a Board position.
   * **Move** is a move that can be made from that position.   * **Move** is a move that can be made from that position.
   * **Weight** is proportional to the probability the move should be played.   * **Weight** is proportional to the probability the move should be played.
Line 9: Line 9:
 ---- ----
  
-<code cpp> +[[Chess:Programming:Polyglot Book Format:Castle|Castle]]
-struct entry_t { +
-   uint64 key; +
-   uint16 move; +
-   uint16 count; +
-   uint16 n; +
-   uint16 sum; +
-}; +
-</code>+
  
-----+[[Chess:Programming:Polyglot Book Format:Enpassant|Enpassant]] 
 + 
 +[[Chess:Programming:Polyglot Book Format:Extensions for other forms of Chess|Extensions for other forms of Chess]] 
 + 
 +[[Chess:Programming:Polyglot Book Format:File Format|File Format]] 
 + 
 +[[Chess:Programming:Polyglot Book Format:Key|Key]]
  
 [[Chess:Programming:Polyglot Book Format:Learn|Learn]] [[Chess:Programming:Polyglot Book Format:Learn|Learn]]
Line 27: Line 25:
 [[Chess:Programming:Polyglot Book Format:Piece|Piece]] [[Chess:Programming:Polyglot Book Format:Piece|Piece]]
  
-[[Chess:Programming:Polyglot Book Format:Position|Position]]+[[Chess:Programming:Polyglot Book Format:Tests|Tests]] 
 + 
 +[[Chess:Programming:Polyglot Book Format:Turn|Turn]]
  
 [[Chess:Programming:Polyglot Book Format:Weight|Weight]] [[Chess:Programming:Polyglot Book Format:Weight|Weight]]
chess/programming/polyglot_book_format.1641834648.txt.gz · Last modified: 2022/01/10 17:10 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki