]> git.sesse.net Git - stockfish/commit
Minor improvement in eval of unstoppable pawns promoting one ply apart.
authorTord Romstad <tord@glaurungchess.com>
Thu, 15 Oct 2009 10:39:55 +0000 (12:39 +0200)
committerTord Romstad <tord@glaurungchess.com>
Thu, 15 Oct 2009 10:39:55 +0000 (12:39 +0200)
commit53f882ff1a95d444dd9b3cd0eb39d493d0e6280e
treef57aba091adbb519977788886ce6cba70530ffbd
parentd8e7ce1863d234f585193125b328e18668bd1e71
Minor improvement in eval of unstoppable pawns promoting one ply apart.

Marco's new code for evaluating two unstoppable passed pawns where
one pawn promotes a single ply before the other tried to detect
cases where the pawn that promotes first could immediately capture
the pawn that promotes a ply later, but didn't work in cases where
the two pawns are on the same file. An example of this is the
following position:

8/8/3K4/2P5/2p5/3k4/8/8 w - -

With the new code, such positions are handled correctly.
src/evaluate.cpp