User Tools

Site Tools


chess:programming:polyglot_book_format

This is an old revision of the document!


Chess - Programming - Polyglot Book Format - Polyglot Book Format

A PolyGlot opening book is a collection of triples (Key, Move, Weight).

  • Key is a 64-bit Zobrist hash key, of a Board position.
  • Move is a move that can be made from that position.
  • Weight is proportional to the probability the move should be played.

struct entry_t {
   uint64 key;
   uint16 move;
   uint16 count;
   uint16 n;
   uint16 sum;
};

Learn

Move

Piece

Key

Tests

Weight


References

chess/programming/polyglot_book_format.1641907701.txt.gz · Last modified: 2022/01/11 13:28 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki