Signed-off-by: Marco Costalba <mcostalba@gmail.com>
int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime, ExactMaxTime;
bool UseTimeManagement, InfiniteSearch, PonderSearch, StopOnPonderhit;
bool AbortSearch, Quit;
int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime, ExactMaxTime;
bool UseTimeManagement, InfiniteSearch, PonderSearch, StopOnPonderhit;
bool AbortSearch, Quit;
+ bool AspirationFailLow;
// Show current line?
bool ShowCurrentLine;
// Show current line?
bool ShowCurrentLine;
// Initialize global search variables
Idle = StopOnPonderhit = AbortSearch = Quit = false;
// Initialize global search variables
Idle = StopOnPonderhit = AbortSearch = Quit = false;
+ AspirationFailLow = false;
NodesSincePoll = 0;
SearchStartTime = get_system_time();
ExactMaxTime = maxTime;
NodesSincePoll = 0;
SearchStartTime = get_system_time();
ExactMaxTime = maxTime;
assert(alpha >= oldAlpha);
assert(alpha >= oldAlpha);
- FailLow = (alpha == oldAlpha);
+ AspirationFailLow = (alpha == oldAlpha);
- if (FailLow && StopOnPonderhit)
+ if (AspirationFailLow && StopOnPonderhit)
StopOnPonderhit = false;
}
StopOnPonderhit = false;
}
return;
bool stillAtFirstMove = RootMoveNumber == 1
return;
bool stillAtFirstMove = RootMoveNumber == 1
&& t > MaxSearchTime + ExtraSearchTime;
bool noMoreTime = t > AbsoluteMaxSearchTime
&& t > MaxSearchTime + ExtraSearchTime;
bool noMoreTime = t > AbsoluteMaxSearchTime
PonderSearch = false;
bool stillAtFirstMove = RootMoveNumber == 1
PonderSearch = false;
bool stillAtFirstMove = RootMoveNumber == 1
&& t > MaxSearchTime + ExtraSearchTime;
bool noMoreTime = t > AbsoluteMaxSearchTime
&& t > MaxSearchTime + ExtraSearchTime;
bool noMoreTime = t > AbsoluteMaxSearchTime