]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Parameter tweaks in PSQT and NMP
[stockfish] / src / search.cpp
index 1f6a129039b1d3e4dce57add99b74f63e70aed60..1303e1fb08f7c587ea02b192fca7d8ec32c7e90c 100644 (file)
@@ -766,7 +766,7 @@ namespace {
         assert(eval - beta >= 0);
 
         // Null move dynamic reduction based on depth and value
-        Depth R = ((823 + 67 * depth / ONE_PLY) / 256 + std::min((eval - beta) / PawnValueMg, 3)) * ONE_PLY;
+        Depth R = ((823 + 67 * depth / ONE_PLY) / 256 + std::min(int(eval - beta) / 200, 3)) * ONE_PLY;
 
         ss->currentMove = MOVE_NULL;
         ss->continuationHistory = &thisThread->continuationHistory[NO_PIECE][0];