chess:programming:polyglot_book_format:piece
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
chess:programming:polyglot_book_format:piece [2022/01/11 13:41] – peter | chess:programming:polyglot_book_format:piece [2022/01/11 13:55] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Chess - Programming - Polyglot Book Format - Piece ====== | ====== Chess - Programming - Polyglot Book Format - Piece ====== | ||
- | See [[Chess: | + | **Piece** is part of the [[Chess: |
- | ---- | + | It is the exclusive or of entries from the **RANDOM_PIECE** sub-array, one for each piece on the board. |
- | + | ||
- | **Piece** | + | |
The offset of the entry in **RANDOM_PIECE** corresponding to a piece is computed as follows: < | The offset of the entry in **RANDOM_PIECE** corresponding to a piece is computed as follows: < | ||
- | piece_offset=64 * Piece_Type + 8 * Rank + File; | + | piece = 64 * Piece_Type + 8 * Rank + File; |
</ | </ | ||
Line 41: | Line 39: | ||
|h8|7|7| | |h8|7|7| | ||
+ | ---- | ||
[[Chess: | [[Chess: |
chess/programming/polyglot_book_format/piece.1641908479.txt.gz · Last modified: 2022/01/11 13:41 by peter