Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,11 @@ fn search<NODE: NodeType>(
extension = 1;
}

// Internal Iterative Reductions (IIR)
if depth >= 4 && tt_move.is_null() && !excluded {
depth -= 1;
}
Comment on lines +738 to +741

let mut best_move = Move::NULL;
let mut bound = Bound::Upper;

Expand Down Expand Up @@ -1263,10 +1268,6 @@ fn qsearch<NODE: NodeType>(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;
}
Comment on lines 1268 to 1272

Expand Down