Skip to content

Commit

Permalink
Simplify TT cutoff
Browse files Browse the repository at this point in the history
Remove the exact bound condition from TT depth check.

STC:
https://tests.stockfishchess.org/tests/view/64b30b320cdec37b957359e9
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 332928 W: 84895 L: 85003 D: 163030
Ptnml(0-2): 1242, 39200, 85604, 39260, 1158

LTC:
https://tests.stockfishchess.org/tests/view/64b74e2adc56e1650abac0b6
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 92946 W: 23628 L: 23482 D: 45836
Ptnml(0-2): 38, 10033, 26192, 10165, 45

closes #4702

Bench: 1601764
  • Loading branch information
locutus2 authored and snicolet committed Jul 24, 2023
1 parent 78e3d2a commit 76e1e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ namespace {
// At non-PV nodes we check for an early TT cutoff
if ( !PvNode
&& !excludedMove
&& tte->depth() > depth - (tte->bound() == BOUND_EXACT)
&& tte->depth() > depth
&& ttValue != VALUE_NONE // Possible in case of TT access race or if !ttHit
&& (tte->bound() & (ttValue >= beta ? BOUND_LOWER : BOUND_UPPER)))
{
Expand Down

0 comments on commit 76e1e8f

Please sign in to comment.