Do TT cutoffs only on non pv nodes

This commit is contained in:
stefiosif
2025-02-14 08:46:46 +02:00
parent 5a6cff2e40
commit b0e19a5b49

View File

@@ -45,7 +45,8 @@ pub fn negamax(
let entry = game.tt.lookup(game.hash); let entry = game.tt.lookup(game.hash);
if let Some(entry) = entry { if let Some(entry) = entry {
if plies > 0 if alpha == beta - 1
&& plies > 0
&& entry.hash == game.hash && entry.hash == game.hash
&& entry.depth >= depth && entry.depth >= depth
&& entry.node_type.cutoff_eligible(entry.score, alpha, beta) && entry.node_type.cutoff_eligible(entry.score, alpha, beta)