]> git.sesse.net Git - stockfish/commitdiff
Clean-up en passant processing
authorAlain SAVARD <support@multicim.com>
Tue, 7 Jul 2020 02:43:54 +0000 (22:43 -0400)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 9 Jul 2020 19:46:26 +0000 (21:46 +0200)
the goal of this PR is to better document how we process
the ep square (if any) given position fen command, and to
output more meaningful (and consistent) debug fen on the "d"
command. The implementation follows
https://en.wikipedia.org/wiki/X-FEN#Encoding_en-passant
following x-fen, it is "valid" to record ep even if ep would put king en prise.

fixes #2784

closes https://github.com/official-stockfish/Stockfish/pull/2797

No functional change


No differences found