X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=72530f2e94a1a324ef0c5818a2677c0aed5d543b;hp=0e3838371fe0bc95366462fd1b8d547a2e3bd079;hb=db46602b1ff41ff5ef1c41ed04829dc964722b25;hpb=d3f99aea6b6a7653c2d60ac94e600b1b2f5800e1;ds=sidebyside diff --git a/src/search.cpp b/src/search.cpp index 0e383837..72530f2e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2412,7 +2412,7 @@ namespace { || ( !FailHigh && !fail_high_ply_1() && !Problem && t > 6*(MaxSearchTime + ExtraSearchTime)); - if ( (Iteration >= 2 && (!InfiniteSearch && overTime)) + if ( (Iteration >= 3 && (!InfiniteSearch && overTime)) || (ExactMaxTime && t >= ExactMaxTime) || (Iteration >= 3 && MaxNodes && nodes_searched() >= MaxNodes)) AbortSearch = true; @@ -2426,7 +2426,7 @@ namespace { void ponderhit() { int t = current_search_time(); PonderSearch = false; - if(Iteration >= 2 && + if(Iteration >= 3 && (!InfiniteSearch && (StopOnPonderhit || t > AbsoluteMaxSearchTime || (RootMoveNumber == 1 &&