mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
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.
This commit is contained in:
parent
01ebb3d996
commit
eb6ddd54f1
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ namespace {
|
||||||
|
|
||||||
// If we are pondering or in infinite search, we shouldn't print the
|
// If we are pondering or in infinite search, we shouldn't print the
|
||||||
// best move before we are told to do so.
|
// best move before we are told to do so.
|
||||||
if (!AbortSearch && (PonderSearch || InfiniteSearch))
|
if (!AbortSearch && !ExactMaxTime && (PonderSearch || InfiniteSearch))
|
||||||
wait_for_stop_or_ponderhit();
|
wait_for_stop_or_ponderhit();
|
||||||
else
|
else
|
||||||
// Print final search statistics
|
// Print final search statistics
|
||||||
|
|
Loading…
Add table
Reference in a new issue