]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Late counter bonus: boost underestimated moves
[stockfish] / src / search.cpp
index cfb569b90934e6cab2fc1cc7bec602aa5035d8ff..6585f7bcabe965f85f06dde4db7fa842e18795a8 100644 (file)
@@ -1383,8 +1383,7 @@ moves_loop: // When in check, search starts here
     // Bonus for prior countermove that caused the fail low
     else if (!priorCapture)
     {
-        // Extra bonuses for PV/Cut nodes or bad fail lows
-        int bonus = (depth > 5) + (PvNode || cutNode) + (bestValue < alpha - 97 * depth);
+        int bonus = (depth > 5) + (PvNode || cutNode) + (bestValue < alpha - 97 * depth) + ((ss-1)->moveCount > 10);
         update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus);
     }