]> git.sesse.net Git - stockfish/commit
Fix move_is_capture() to detect capture promotions
authorMarco Costalba <mcostalba@gmail.com>
Wed, 22 Jun 2011 22:04:57 +0000 (23:04 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 23 Jun 2011 11:09:31 +0000 (12:09 +0100)
commit6a1707889c19bf37a0ef84fb67ffc57e6168e34d
tree3bfb602d9c23d42d5393ed5ff6471ce98266c330
parent1c42d153402be9eeed46986a392affee03e1de53
Fix move_is_capture() to detect capture promotions

We miss to account as a capture a promotion capture !

Incredible bug in this critical function that is here
since a long time (b50921fd5c3e1753 of 21/10/2009 !!)

This patch fixes the bug and readds the faster
move_is_capture_or_promotion() that slightly increases
overall speed.

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