movegen: revert see ordering in score_captures()
authorMarco Costalba <mcostalba@gmail.com>
Fri, 17 Oct 2008 20:54:23 +0000 (22:54 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 18 Oct 2008 19:35:33 +0000 (21:35 +0200)
It works better with MVV ordering.

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

index c0ec86775c48ce12f20d6b637072712905d7fcf4..1024cbffede226903eaf47f8f48e2001cabfe370 100644 (file)
@@ -215,9 +215,9 @@ void MovePicker::score_captures() {
   {
       Move m = moves[i].move;
       moves[i].score = pos.see(m);
-      //if (moves[i].score >= 0)
-      //    moves[i].score = move_promotion(m) ? QueenValueMidgame
-      //                   : pos.midgame_value_of_piece_on(move_to(m));
+      if (moves[i].score >= 0)
+          moves[i].score = move_promotion(m) ? QueenValueMidgame
+                         : pos.midgame_value_of_piece_on(move_to(m));
   }
 }