jordanbray / chess

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

Incorrect FEN generated: #83

Open xd009642 opened 11 months ago

xd009642 commented 11 months 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 6 months ago

I realized the same issue