Add depth based time limit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user