Skip to content

Commit

Permalink
πŸ›πŸ” Don't use TT static eval in QSearch (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio authored Jan 2, 2025
1 parent c5469fb commit d4eadb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Lynx/Search/NegaMax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,13 @@ public int QuiescenceSearch(int ply, int alpha, int beta, CancellationToken canc

_maxDepthReached[ply] = ply;

/*
var staticEval = ttHit
? ttProbeResult.StaticEval
: position.StaticEvaluation(Game.HalfMovesWithoutCaptureOrPawnMove).Score;
*/

var staticEval = position.StaticEvaluation(Game.HalfMovesWithoutCaptureOrPawnMove).Score;
Debug.Assert(staticEval != EvaluationConstants.NoHashEntry, "Assertion failed", "All TT entries should have a static eval");

Game.UpdateStaticEvalInStack(ply, staticEval);
Expand Down

0 comments on commit d4eadb8

Please sign in to comment.