mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Group time management globals initialization
Instead to leave uninitialized or scattered in the code as is the case for ExtraSearchTime. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
4ef068a506
commit
7ff9678651
1 changed files with 1 additions and 2 deletions
|
@ -373,6 +373,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
|
||||||
|
|
||||||
// Initialize global search variables
|
// Initialize global search variables
|
||||||
StopOnPonderhit = AbortSearch = Quit = AspirationFailLow = false;
|
StopOnPonderhit = AbortSearch = Quit = AspirationFailLow = false;
|
||||||
|
MaxSearchTime = AbsoluteMaxSearchTime = ExtraSearchTime = 0;
|
||||||
NodesSincePoll = 0;
|
NodesSincePoll = 0;
|
||||||
TM.resetNodeCounters();
|
TM.resetNodeCounters();
|
||||||
SearchStartTime = get_system_time();
|
SearchStartTime = get_system_time();
|
||||||
|
@ -647,8 +648,6 @@ namespace {
|
||||||
// Initialize iteration
|
// Initialize iteration
|
||||||
Iteration++;
|
Iteration++;
|
||||||
BestMoveChangesByIteration[Iteration] = 0;
|
BestMoveChangesByIteration[Iteration] = 0;
|
||||||
if (Iteration <= 5)
|
|
||||||
ExtraSearchTime = 0;
|
|
||||||
|
|
||||||
cout << "info depth " << Iteration << endl;
|
cout << "info depth " << Iteration << endl;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue