From db46602b1ff41ff5ef1c41ed04829dc964722b25 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 24 Mar 2009 10:49:02 +0100 Subject: [PATCH] Wait at least until iteration 3 before to stop the search It was 2 before. Merged from Glaurung current development snapshot. Signed-off-by: Marco Costalba --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 && -- 2.39.2