jordanbray / chess

A rust library to manage chess move generation
https://jordanbray.github.io/chess/
MIT License
245 stars 57 forks source link

Incorrect FEN generated: #83

Open xd009642 opened 1 year ago

xd009642 commented 1 year ago

For the game sequence:

  1. d4 f6
  2. d5 e5

The Board::to_string() implementation generates the following FEN string: "rnbqkbnr/pppp2pp/5p2/3Pp3/8/8/PPP1PPPP/RNBQKBNR w KQkq e5 0 1".

This is incorrect, the en-passant square should be e6.

mariogeiger commented 11 months ago

I realized the same issue