mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
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 <mcostalba@gmail.com>
This commit is contained in:
parent
d3f99aea6b
commit
db46602b1f
1 changed files with 2 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Reference in a new issue