]> git.sesse.net Git - stockfish/commit
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)
commit76a039027d14640852f60bda6d62ca16bdac3b9e
treea74dac3184f91ce3b30c3b33ae512f01c4972724
parent7225d254f90c7b9d64d4adf85ec2d319c6cf75a0
Clean-up en passant processing

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
src/position.cpp