mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +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
|
|| ( !FailHigh && !fail_high_ply_1() && !Problem
|
||||||
&& t > 6*(MaxSearchTime + ExtraSearchTime));
|
&& t > 6*(MaxSearchTime + ExtraSearchTime));
|
||||||
|
|
||||||
if ( (Iteration >= 2 && (!InfiniteSearch && overTime))
|
if ( (Iteration >= 3 && (!InfiniteSearch && overTime))
|
||||||
|| (ExactMaxTime && t >= ExactMaxTime)
|
|| (ExactMaxTime && t >= ExactMaxTime)
|
||||||
|| (Iteration >= 3 && MaxNodes && nodes_searched() >= MaxNodes))
|
|| (Iteration >= 3 && MaxNodes && nodes_searched() >= MaxNodes))
|
||||||
AbortSearch = true;
|
AbortSearch = true;
|
||||||
|
@ -2426,7 +2426,7 @@ namespace {
|
||||||
void ponderhit() {
|
void ponderhit() {
|
||||||
int t = current_search_time();
|
int t = current_search_time();
|
||||||
PonderSearch = false;
|
PonderSearch = false;
|
||||||
if(Iteration >= 2 &&
|
if(Iteration >= 3 &&
|
||||||
(!InfiniteSearch && (StopOnPonderhit ||
|
(!InfiniteSearch && (StopOnPonderhit ||
|
||||||
t > AbsoluteMaxSearchTime ||
|
t > AbsoluteMaxSearchTime ||
|
||||||
(RootMoveNumber == 1 &&
|
(RootMoveNumber == 1 &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue