chess:programming:polyglot_book_format:weight
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
chess:programming:polyglot_book_format:weight [2022/01/10 15:52] – created peter | chess:programming:polyglot_book_format:weight [2022/01/11 14:13] (current) – [Zero Weights] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Chess - Programming - Polyglot Book Format - Weight ====== | ====== Chess - Programming - Polyglot Book Format - Weight ====== | ||
- | **weight** is a measure for the quality of the move. | + | **Weight** is a measure for the quality of the move. |
- | * This is sometimes referred to as **count**. | + | |
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** This is sometimes referred to as **count**. | ||
The Polyglot book generator sets it to 2*(wins)+(draws), | The Polyglot book generator sets it to 2*(wins)+(draws), | ||
- | | + | |
- | * This is just a convention and book authors are free to set this field according to their taste. | + | * This is just a convention and book authors are free to set this field according to their taste. |
- | If random play is enabled in Polyglot then the probability that a move is selected is its weight divided by the sum of the weights of all the moves in the given position. | + | </ |
---- | ---- | ||
Line 16: | Line 19: | ||
===== Zero Weights ===== | ===== Zero Weights ===== | ||
- | Older Polyglot versions are defective as to the use of zero weights, (meaning the move should never be played), and crash when they encounter them. | + | <WRAP important> |
+ | **WARNING: | ||
This because of a misplaced internal consistency check, which really only made sense during book building (which deletes all entries with zero weight from the book). | This because of a misplaced internal consistency check, which really only made sense during book building (which deletes all entries with zero weight from the book). | ||
Line 26: | Line 30: | ||
* This is for instance what Scid does, but it means the move will still occasionally be played. | * This is for instance what Scid does, but it means the move will still occasionally be played. | ||
* With XBoard you can edit Polyglot books to set the weight to exactly zero, as well as delete or add moves. | * With XBoard you can edit Polyglot books to set the weight to exactly zero, as well as delete or add moves. | ||
+ | |||
+ | </ | ||
+ | |||
- | [[Chess: |
chess/programming/polyglot_book_format/weight.1641829963.txt.gz · Last modified: 2022/01/10 15:52 by peter