Skip to content

Commit

Permalink
Don't save exact entries in QSearch (liamt19#62)
Browse files Browse the repository at this point in the history
bench: 4909216
  • Loading branch information
liamt19 authored Aug 16, 2024
1 parent 9819518 commit f93dd7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Logic/Search/Searches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,7 @@ public static int QSearch<NodeType>(Position pos, SearchStackEntry* ss, int alph
return MakeMateScore(ss->Ply);
}

TTNodeType bound = (bestScore >= beta) ? TTNodeType.Alpha :
((bestScore > startingAlpha) ? TTNodeType.Exact :
TTNodeType.Beta);
var bound = (bestScore >= beta) ? TTNodeType.Alpha : TTNodeType.Beta;

tte->Update(pos.Hash, MakeTTScore((short)bestScore, ss->Ply), bound, ttDepth, bestMove, ss->StaticEval, ss->TTPV);

Expand Down

0 comments on commit f93dd7c

Please sign in to comment.