1
0
Fork 0
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:
Marco Costalba 2009-03-24 10:49:02 +01:00
parent d3f99aea6b
commit db46602b1f

View file

@ -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 &&