]> git.sesse.net Git - stockfish/commit
Fix easy re-capture case
authorMarco Costalba <mcostalba@gmail.com>
Sat, 2 Mar 2013 12:20:40 +0000 (13:20 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 2 Mar 2013 12:20:40 +0000 (13:20 +0100)
commitdef50020ad0f0c093ae66a2725203a1000931d1a
treec8e4bb2a8d6220bc881bfb60d802c3f8427798b0
parent0d68b523a390e2f5c37f211316869d798e852289
Fix easy re-capture case

We detect an easy move as a recapture with an
high margin on the second best move.

Unfortunatly the recapture detection is broken
becuase we identify as a recapture any move that
follows an opponent's previous capture !

This patch fix the logic to correctly detect a
real re-capture.

No functional change.
src/search.cpp