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

Next revision
Previous revision
chess:programming:polyglot_book_format:move [2022/01/10 14:20] – created 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:
  
-|None|0| +^ Promoted Piece  ^ Value  ^ 
-|Knight|1| +| None            | 0      
-|Bishop|2| +| Knight          | 1      
-|Rook|3| +| Bishop          | 2      
-|Queen|4|+| Rook            | 3      
 +| Queen           | 4      |
  
 ---- ----
Line 33: 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 40: 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.1641824402.txt.gz · Last modified: 2022/01/10 14:20 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki