]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Use null move when depth >= 2 plies
[stockfish] / src / search.cpp
index 2a7cde2b5fe848b7be3c778c263fc5d730da9a5b..9ae28d3c55870b554a5681782442dbbc3569b3c3 100644 (file)
@@ -663,7 +663,7 @@ namespace {
     // Step 8. Null move search with verification search (is omitted in PV nodes)
     if (   !PvNode
         && !ss->skipNullMove
-        &&  depth > ONE_PLY
+        &&  depth >= 2 * ONE_PLY
         &&  eval >= beta
         &&  abs(beta) < VALUE_MATE_IN_MAX_PLY
         &&  pos.non_pawn_material(pos.side_to_move()))