]> git.sesse.net Git - stockfish/commit
Be sure negative see evasions are at the bottom
authorMarco Costalba <mcostalba@gmail.com>
Fri, 5 Feb 2010 07:19:39 +0000 (08:19 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 5 Feb 2010 07:19:39 +0000 (08:19 +0100)
commit6fe36d13de0ec25a8d35ca256dacee8b854856be
treed02bfaf5e73d0e19159ee66f8e7735422b129e1c
parent337ec0f3d0b402782c3704cc251c209393047dd9
Be sure negative see evasions are at the bottom

Because H.move_ordering_score() can return negative values
some negative see moves could be searched before non-negative
see moves with negative history.

This patch restores proper ordering.

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