Skip to content

Commit

Permalink
Avoid doing TT cutoffs in pv node
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Feb 11, 2024
1 parent d36e52a commit 666a422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lynx/Search/NegaMax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private int NegaMax(int depth, int ply, int alpha, int beta, bool parentWasNullM
if (!isRoot)
{
(ttEvaluation, ttBestMove, ttElementType) = _tt.ProbeHash(_ttMask, position, depth, ply, alpha, beta);
if (ttEvaluation != EvaluationConstants.NoHashEntry)
if (!pvNode && ttEvaluation != EvaluationConstants.NoHashEntry)
{
return ttEvaluation;
}
Expand Down

0 comments on commit 666a422

Please sign in to comment.