Add depth based time limit

This commit is contained in:
stefiosif
2025-01-27 22:20:45 +02:00
parent a01310c7b7
commit b4f61f6504
4 changed files with 12 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ pub fn iterative_deepening(
let mut best_move = None;
for depth in 1..=max_depth {
if time.exceed_hard_limit() {
if time.exceed_soft_limit() {
return Ok(best_move);
}