Skip to content

Commit

Permalink
reduce depth on tt miss
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocodutra committed Sep 16, 2023
1 parent da7ff9f commit 345501f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/search/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ impl Engine {
};
}

let depth = match tpos {
#[cfg(not(test))]
// Reductions are not exact.
None => depth - 1,
_ => depth,
};

let score = match tpos {
Some(t) => t.score().normalize(ply),
None if ply >= depth => pos.value().cast(),
Expand Down

0 comments on commit 345501f

Please sign in to comment.