User Tools

Site Tools


chess:programming:polyglot_book_format:move

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:move [2022/01/10 14:21] peterchess: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          | 1      
-|Bishop|2| +| Bishop          | 2      
-|Rook|3| +| Rook            | 3      
-|Queen|4|+| Queen           | 4      |
  
 ---- ----
Line 42: Line 42:
 <WRAP info> <WRAP info>
 **NOTE:**  It is technically possible that these moves are legal non-castling moves. **NOTE:**  It is technically possible that these moves are legal non-castling moves.
- 
   * 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.
  
 </WRAP> </WRAP>
chess/programming/polyglot_book_format/move.1641824462.txt.gz · Last modified: 2022/01/10 14:21 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki