rudzen / ChessLib

C# chess library containing a complete data structure and move generation.
MIT License
81 stars 22 forks source link

En passant square not set when Loading position from FEN #35

Closed tuxmania87 closed 2 years ago

tuxmania87 commented 3 years ago

When Loading position from FEN via Position.SetFen() the en passant square is not set properly

The expressions suggests if the 2nd character in the en passant part of FEN is 3,4,5, or 6 then its NOT an en passant square, when in fact such sqaures always end with 3 or 6. chunk[1].InBetween('3', '6') ? Square.None

rudzen commented 3 years ago

Good catch.