]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Increase non-PV IID search depth
[stockfish] / src / search.cpp
index 7a06dad93f94035b046c9384938ce6d8d0b983b1..8ef2513dd1a895c0fdda2ed28af7c5587f06de51 100644 (file)
@@ -745,7 +745,7 @@ namespace {
         && ttMove == MOVE_NONE
         && (PvNode || (!inCheck && ss->staticEval + Value(256) >= beta)))
     {
         && ttMove == MOVE_NONE
         && (PvNode || (!inCheck && ss->staticEval + Value(256) >= beta)))
     {
-        Depth d = (PvNode ? depth - 2 * ONE_PLY : depth / 2);
+        Depth d = (PvNode ? depth - 2 * ONE_PLY : depth - 4 * ONE_PLY);
 
         ss->skipNullMove = true;
         search<PvNode ? PV : NonPV>(pos, ss, alpha, beta, d);
 
         ss->skipNullMove = true;
         search<PvNode ? PV : NonPV>(pos, ss, alpha, beta, d);