MovePicker::score_captures() order with SEE when pv
authorMarco Costalba <mcostalba@gmail.com>
Mon, 27 Oct 2008 21:04:47 +0000 (22:04 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 1 Nov 2008 11:46:52 +0000 (12:46 +0100)
Order PV nodes by SEE instead of MVV/LVA.

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

index 187a3c513e0275a112c377919a40d62cbdebf586..0ff1dcfc29d8b9fb517bfdd5d4bd6c60579a5fc1 100644 (file)
@@ -218,7 +218,7 @@ void MovePicker::score_captures() {
   {
       m = moves[i].move;
       seeValue = pos.see(m);
-      if (seeValue >= 0)
+      if (seeValue >= 0 && !pvNode)
       {
           if (move_promotion(m))
               moves[i].score = QueenValueMidgame;