diff --git a/src/search.rs b/src/search.rs index a42eaa549..8f5c5fcfc 100644 --- a/src/search.rs +++ b/src/search.rs @@ -735,6 +735,11 @@ fn search( extension = 1; } + // Internal Iterative Reductions (IIR) + if depth >= 4 && tt_move.is_null() && !excluded { + depth -= 1; + } + let mut best_move = Move::NULL; let mut bound = Bound::Upper; @@ -1263,10 +1268,6 @@ fn qsearch(td: &mut ThreadData, mut alpha: i32, beta: i32, ply: best_score = lerp(best_score, beta, 0.8256); } - if entry.is_none() { - td.shared.tt.write(hash, TtDepth::SOME, raw_eval, best_score, Bound::Lower, Move::NULL, ply, tt_pv, false); - } - return best_score; }