chess:programming:polyglot_book_format:move
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:move [2022/01/10 14:20] – [Promotion Moves] peter | chess:programming:polyglot_book_format:move [2022/01/11 14:08] (current) – [Castling Moves] peter | ||
---|---|---|---|
Line 21: | Line 21: | ||
A **Promoted Piece** is encoded as follows: | A **Promoted Piece** is encoded as follows: | ||
- | ^Promoted Piece^Value^ | + | ^ Promoted Piece ^ Value ^ |
- | |None|0| | + | | None | 0 | |
- | |Knight|1| | + | | Knight |
- | |Bishop|2| | + | | Bishop |
- | |Rook|3| | + | | Rook | 3 | |
- | |Queen|4| | + | | Queen |
---- | ---- | ||
Line 34: | Line 34: | ||
Castling moves are represented unconventionally as follows: | Castling moves are represented unconventionally as follows: | ||
+ | ^Color^Castle Side^Polygot Move^ | ||
|White|King-side Castle|e1h1| | |White|King-side Castle|e1h1| | ||
|White|Queen-side Castle|e1a1| | |White|Queen-side Castle|e1a1| | ||
Line 41: | Line 42: | ||
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
- | |||
* Therefore a program should verify that a Castle-move was actually valid. | * Therefore a program should verify that a Castle-move was actually valid. | ||
+ | * For example, verify that there is really a king present on e1/e8. | ||
</ | </ |
chess/programming/polyglot_book_format/move.1641824427.txt.gz · Last modified: 2022/01/10 14:20 by peter