X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=97ed196acede459112754e6892f2b88fba8a75cc;hp=8da12118d21979d3941e984743fb6f5e8794235c;hb=e7bad2687a26655e128fec04b58bbcdaaaf910cd;hpb=3f610e2b13340ca65d0f9d63aa0cb8da92e80117 diff --git a/src/search.cpp b/src/search.cpp index 8da12118..97ed196a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1148,7 +1148,8 @@ namespace { UndoInfo u; pos.do_null_move(u); - Value nullValue = -search(pos, ss, -(beta-1), depth-4*OnePly, ply+1, false, threadID); + int R = (depth > 7 ? 4 : 3); + Value nullValue = -search(pos, ss, -(beta-1), depth-R*OnePly, ply+1, false, threadID); pos.undo_null_move(u); if (nullValue >= beta)