]> git.sesse.net Git - stockfish/commit
Fix en-passant parsing from fen string
authorMarco Costalba <mcostalba@gmail.com>
Wed, 6 Jan 2010 08:58:41 +0000 (09:58 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 6 Jan 2010 09:07:07 +0000 (10:07 +0100)
commitcc974fa7a4ffc5511ca6c4bc9ae1ef40c2827772
tree4c1ba1b3bd032c79388b4e26445647fbc214a478
parent807844eab194adc7c5378575f81d28ce9ca66287
Fix en-passant parsing from fen string

According to standard en-passant is recorded in fen string regardless
of whether there is a pawn in position to make an en passant capture.

Instead internally we set ep square only if the pawn can be captured.
So teach from_fen() to correctly handle this difference.

Bug reported and fixed by Justin Blanchard.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/position.cpp