]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Assorted formatting and comment tweaks in position.h
[stockfish] / src / search.cpp
index 86c572b42c28eb212dad34989034578cc1dac2cf..587506ec44ff91218b730f4cc948e74b1afecc98 100644 (file)
@@ -650,7 +650,7 @@ namespace {
         assert(eval - beta >= 0);
 
         // Null move dynamic reduction based on depth and value
-        Depth R = (3 + depth / 4 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY;
+        Depth R = ((823 + 67 * depth) / 256 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY;
 
         pos.do_null_move(st);
         (ss+1)->skipEarlyPruning = true;