Give FailLow flag more descriptive name

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski
2010-02-05 15:20:38 +02:00
committed by Marco Costalba
parent e738fa7d10
commit 321f6d1d19

View File

@@ -198,7 +198,7 @@ namespace {
int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime, ExactMaxTime; int MaxSearchTime, AbsoluteMaxSearchTime, ExtraSearchTime, ExactMaxTime;
bool UseTimeManagement, InfiniteSearch, PonderSearch, StopOnPonderhit; bool UseTimeManagement, InfiniteSearch, PonderSearch, StopOnPonderhit;
bool AbortSearch, Quit; bool AbortSearch, Quit;
bool FailLow; bool AspirationFailLow;
// Show current line? // Show current line?
bool ShowCurrentLine; bool ShowCurrentLine;
@@ -340,7 +340,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
// Initialize global search variables // Initialize global search variables
Idle = StopOnPonderhit = AbortSearch = Quit = false; Idle = StopOnPonderhit = AbortSearch = Quit = false;
FailLow = false; AspirationFailLow = false;
NodesSincePoll = 0; NodesSincePoll = 0;
SearchStartTime = get_system_time(); SearchStartTime = get_system_time();
ExactMaxTime = maxTime; ExactMaxTime = maxTime;
@@ -1078,9 +1078,9 @@ namespace {
assert(alpha >= oldAlpha); assert(alpha >= oldAlpha);
FailLow = (alpha == oldAlpha); AspirationFailLow = (alpha == oldAlpha);
if (FailLow && StopOnPonderhit) if (AspirationFailLow && StopOnPonderhit)
StopOnPonderhit = false; StopOnPonderhit = false;
} }
@@ -2683,7 +2683,7 @@ namespace {
return; return;
bool stillAtFirstMove = RootMoveNumber == 1 bool stillAtFirstMove = RootMoveNumber == 1
&& !FailLow && !AspirationFailLow
&& t > MaxSearchTime + ExtraSearchTime; && t > MaxSearchTime + ExtraSearchTime;
bool noMoreTime = t > AbsoluteMaxSearchTime bool noMoreTime = t > AbsoluteMaxSearchTime
@@ -2706,7 +2706,7 @@ namespace {
PonderSearch = false; PonderSearch = false;
bool stillAtFirstMove = RootMoveNumber == 1 bool stillAtFirstMove = RootMoveNumber == 1
&& !FailLow && !AspirationFailLow
&& t > MaxSearchTime + ExtraSearchTime; && t > MaxSearchTime + ExtraSearchTime;
bool noMoreTime = t > AbsoluteMaxSearchTime bool noMoreTime = t > AbsoluteMaxSearchTime