61 operator std::string()
const;
67 void setGameTime(
int const msPerGame,
int const msIncrementPerMove);
69 void setMoveTime(
int const msPerGame,
int const nMoves);
70 void setMoveTime(
int const msPerGame,
int const nMoves,
int const msIncrementPerMove);
103 void recalibrateTime();
104 std::string prettyDepth(
depth_t const d)
const;
105 std::string prettyMoves(
int const d)
const;
112 int m_nTimeForMove = 0;
113 int m_nTimeLeftForGame = 0;
114 int m_nRemainingMovesForPeriod = 0;
117 int m_nMaxTimeForMove = 0;
118 int m_nEstAllowNextIterationTime = 0;
119 int m_nAbsoluteAbortTime = 0;
122 bool m_levelchanged =
true;
123 bool m_pondering =
false;
124 int64_t m_nNodes = 0;
125 int m_timeForGame = 0;
126 int m_movesPerPeriod = 0;
127 int m_incrementPerMove = 0;
depth_t getQSDepth() const
bool searchDepthReached(depth_t const d) const
depth_t getSearchDepth() const
bLevel & operator=(bLevel &&)=delete
void setGameTime(int const msPerGame)
new level or new game
void setQSDepth(depth_t const d)
void setRemainingTime(int const msPerGame)
xboard issues time command to update available time
void setMoveTime(int const msPerMove)
void setSearchDepth(depth_t const d)
bLevel & operator=(bLevel const &)=default
void setMateSearch(depth_t const d)
void setMoves(std::string movelist)
bool qsDepthReached(depth_t const d) const
LevelType getType() const
bool stoppingSearch(long const nTimeElapsed) const
Stop search required ?
depth_t getMaxDepth() const
bLevel(bLevel const &)=default
void setMaxDepth(depth_t const d)
bool stillTimeLeft(depth_t const d, long const nTimeElapsed) const
Do we still have time to do another iteration ?
void setDepthCommand(depth_t const d)
void undoMovePlayed()
used for recalibrating time in case for undo move in xboard moves per period
constexpr auto TIME_OVERFLOWMULTIPLYER
constexpr auto TIME_UNDERFLOWDEVIDER
constexpr depth_t QS_DEPTHEXTENSION
constexpr auto TIME_UNDERFLOWMULTIPLYER
constexpr auto MINIMAL_DEPTH_COMPLETED
constexpr auto TIME_LOSTINENGINE
time lost in between UI go command and bestmove return
constexpr depth_t DEFAULT_DEPTH
constexpr depth_t MAXDEPTH_MULTIPLYER
constexpr depth_t INFINITE_DEPTH
LevelType
Implements clock n seconds per game - setGameTime(seconds * 1000) n seconds per game,...
constexpr auto TIME_LASTMOVEMARGIN