mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Give FailLow flag more descriptive name
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
e738fa7d10
commit
321f6d1d19
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user