mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Give FailLow flag more descriptive name
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
e738fa7d10
commit
321f6d1d19
1 changed files with 6 additions and 6 deletions
|
@ -198,7 +198,7 @@ namespace {
|
|||
int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime, ExactMaxTime;
|
||||
bool UseTimeManagement, InfiniteSearch, PonderSearch, StopOnPonderhit;
|
||||
bool AbortSearch, Quit;
|
||||
bool FailLow;
|
||||
bool AspirationFailLow;
|
||||
|
||||
// Show current line?
|
||||
bool ShowCurrentLine;
|
||||
|
@ -340,7 +340,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
|
|||
|
||||
// Initialize global search variables
|
||||
Idle = StopOnPonderhit = AbortSearch = Quit = false;
|
||||
FailLow = false;
|
||||
AspirationFailLow = false;
|
||||
NodesSincePoll = 0;
|
||||
SearchStartTime = get_system_time();
|
||||
ExactMaxTime = maxTime;
|
||||
|
@ -1078,9 +1078,9 @@ namespace {
|
|||
|
||||
assert(alpha >= oldAlpha);
|
||||
|
||||
FailLow = (alpha == oldAlpha);
|
||||
AspirationFailLow = (alpha == oldAlpha);
|
||||
|
||||
if (FailLow && StopOnPonderhit)
|
||||
if (AspirationFailLow && StopOnPonderhit)
|
||||
StopOnPonderhit = false;
|
||||
}
|
||||
|
||||
|
@ -2683,7 +2683,7 @@ namespace {
|
|||
return;
|
||||
|
||||
bool stillAtFirstMove = RootMoveNumber == 1
|
||||
&& !FailLow
|
||||
&& !AspirationFailLow
|
||||
&& t > MaxSearchTime + ExtraSearchTime;
|
||||
|
||||
bool noMoreTime = t > AbsoluteMaxSearchTime
|
||||
|
@ -2706,7 +2706,7 @@ namespace {
|
|||
PonderSearch = false;
|
||||
|
||||
bool stillAtFirstMove = RootMoveNumber == 1
|
||||
&& !FailLow
|
||||
&& !AspirationFailLow
|
||||
&& t > MaxSearchTime + ExtraSearchTime;
|
||||
|
||||
bool noMoreTime = t > AbsoluteMaxSearchTime
|
||||
|
|
Loading…
Add table
Reference in a new issue