]> git.sesse.net Git - stockfish/commitdiff
Correctly score enpassant captures
authorMarco Costalba <mcostalba@gmail.com>
Sun, 3 Feb 2013 08:01:55 +0000 (09:01 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 3 Feb 2013 08:08:32 +0000 (09:08 +0100)
Surprisingly this rare case was not considered
when scoring a capture.

Also take in account that in the promotion case
we gain a new piece (typically a queen) but we
lose the promoting pawn.

These small issues were present since Glaurung times!

Found while browsing DiscoCheck sources

bench: 5400063


No differences found