mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
Remove InfiniteSearch hack
With current search control system, I can see absolutely no reason to classify fixed time search as infinite search. So remove old dated hack Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
6e8116e38f
commit
02e12a69a7
+1
-1
@@ -850,7 +850,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 && !ExactMaxTime && (PonderSearch || InfiniteSearch))
|
||||
if (!AbortSearch && (PonderSearch || InfiniteSearch))
|
||||
wait_for_stop_or_ponderhit();
|
||||
else
|
||||
// Print final search statistics
|
||||
|
||||
@@ -298,9 +298,6 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
if (moveTime)
|
||||
infinite = true; // HACK
|
||||
|
||||
assert(RootPosition.is_ok());
|
||||
|
||||
return think(RootPosition, infinite, ponder, RootPosition.side_to_move(),
|
||||
|
||||
Reference in New Issue
Block a user