mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +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:
parent
87303d7ed3
commit
d0daa16769
2 changed files with 1 additions and 4 deletions
|
@ -841,7 +841,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 && !ExactMaxTime && (PonderSearch || InfiniteSearch))
|
if (!AbortSearch && (PonderSearch || InfiniteSearch))
|
||||||
wait_for_stop_or_ponderhit();
|
wait_for_stop_or_ponderhit();
|
||||||
else
|
else
|
||||||
// Print final search statistics
|
// Print final search statistics
|
||||||
|
|
|
@ -299,9 +299,6 @@ namespace {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moveTime)
|
|
||||||
infinite = true; // HACK
|
|
||||||
|
|
||||||
assert(RootPosition.is_ok());
|
assert(RootPosition.is_ok());
|
||||||
|
|
||||||
return think(RootPosition, infinite, ponder, RootPosition.side_to_move(),
|
return think(RootPosition, infinite, ponder, RootPosition.side_to_move(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue