]> git.sesse.net Git - stockfish/commit
Fix score_captures() for the case of capture promotions
authorMarco Costalba <mcostalba@gmail.com>
Sat, 11 Jun 2011 21:11:17 +0000 (22:11 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 11 Jun 2011 21:12:13 +0000 (22:12 +0100)
commit4b8a7f2793f0d7dd46d2804cd5f46ccdb080da12
tree71bf79d088c2695e7ebc7705c58bf59e63636297
parent89ec224cb92f49a6edc3d8b03a43d1c4418c285a
Fix score_captures() for the case of capture promotions

In case we have more than one promotion move, prefer
the one that captures the biggest piece.

Almost no functional change, anyhow I don't expect any
ELO change, it is just the correct thing to do.

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