From eb6ddd54f11700ac523792a6411c11d2fba1a511 Mon Sep 17 00:00:00 2001 From: Tord Romstad Date: Fri, 22 Jan 2010 13:42:33 +0100 Subject: [PATCH 1/1] Make sure we make a move at the end of the search when reaching maximum depth during a "go movetime ..." search. This prevents Stockfish from hanging forever after finding a mate in two or three while running a test suite at a level of a few seconds per move. No functional change when playing games at normal time controls. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 0c6cf8be..4b561ee4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -830,7 +830,7 @@ namespace { // If we are pondering or in infinite search, we shouldn't print the // best move before we are told to do so. - if (!AbortSearch && (PonderSearch || InfiniteSearch)) + if (!AbortSearch && !ExactMaxTime && (PonderSearch || InfiniteSearch)) wait_for_stop_or_ponderhit(); else // Print final search statistics -- 2.39.2