io-chess
UCI chess engine
Loading...
Searching...
No Matches
TimeManager.cpp File Reference

Adaptive time management logic. More...

#include "TimeManager.h"
#include "../uci/UCI.h"
#include <algorithm>
#include <cmath>
Include dependency graph for TimeManager.cpp:

Detailed Description

Adaptive time management logic.

Calculates optimal and hard time limits for a search based on the chosen time control, game phase, and remaining time. Includes logic to stop early if the score drops or if a forced mate is found.