X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=e51e2f4dae122310673d40cfced2c5afaea79129;hb=c02ee70927bcb90240f40d8e580e30dc622d5ce9;hp=44e13dae8d386f74a8a95f6aa4436b5c3b09d15a;hpb=796d9df6438b416a63364c7cf5edbc9be5434101;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 44e13dae..e51e2f4d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1371,7 +1371,7 @@ moves_loop: // When in check, search starts here // Bonus for prior countermove that caused the fail low else if (!priorCapture && prevSq != SQ_NONE) { - int bonus = (depth > 5) + (PvNode || cutNode) + (bestValue < alpha - 113 * depth) + ((ss-1)->moveCount > 12); + int bonus = (depth > 5) + (PvNode || cutNode) + (bestValue < alpha - 800) + ((ss-1)->moveCount > 12); update_continuation_histories(ss-1, pos.piece_on(prevSq), prevSq, stat_bonus(depth) * bonus); thisThread->mainHistory[~us][from_to((ss-1)->currentMove)] << stat_bonus(depth) * bonus / 2; }