daylen / stockfish-mac

Beautiful, powerful chess app for the Mac
http://stockfishchess.org/mac/
GNU General Public License v3.0
511 stars 116 forks source link

FEN includes ep square when en passant is not a legal move. #91

Open JSLigon opened 1 year ago

JSLigon commented 1 year ago

After the following moves, the en passant capture is not a legal move because it would put black's king in check, but the "Copy FEN" command gives the ep square as f3. Compare with the FEN for this position on lichess which correctly (in my opinion) gives no en passant square.

  1. e4 e5 2. Nf3 Nc6 3. Bb5 f5 4. Nc3 fxe4 5. Nxe4 d5 6. Nxe5 dxe4 7. Nxc6 Qg5 8. Qe2 Nf6 9. Nxa7+ Bd7 10. Bxd7+ Nxd7 11. f4