chess:programming:polyglot_book_format:enpassant
This is an old revision of the document!
Chess - Programming - Polyglot Book Format - Enpassant
Enpassant is part of the key.
If the opponent has performed a double pawn push and there is now a pawn next to it belonging to the player to move then “enpassant” is the entry from RandomEnPassant whose offset is the file of the pushed pawn (counted from 0(=a) to 7(=h)).
If this does not apply then enpassant=0.
NOTE: This is different from the FEN standard.
- In the FEN standard the presence of an “enpassant target square” after a double pawn push is unconditional.
Also note that it is irrelevant if the potential en passant capturing move is legal or not (examples where it would not be legal are when the capturing pawn is pinned or when the double pawn push was a discovered check).
chess/programming/polyglot_book_format/enpassant.1641909469.txt.gz · Last modified: 2022/01/11 13:57 by peter