mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Introduce and use SearchLimits
Pack a bit of global variables related to search limits in a single struct. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -20,10 +20,12 @@
|
||||
#if !defined(TIMEMAN_H_INCLUDED)
|
||||
#define TIMEMAN_H_INCLUDED
|
||||
|
||||
struct SearchLimits;
|
||||
|
||||
class TimeManager {
|
||||
public:
|
||||
|
||||
void init(int myTime, int myInc, int movesToGo, int currentPly);
|
||||
void init(const SearchLimits& limits, int currentPly);
|
||||
void pv_instability(int curChanges, int prevChanges);
|
||||
int available_time() const { return optimumSearchTime + unstablePVExtraTime; }
|
||||
int maximum_time() const { return maximumSearchTime; }
|
||||
|
||||
Reference in New Issue
Block a user