Skip to content

Commit

Permalink
Simplify TT PV reduction
Browse files Browse the repository at this point in the history
This also removes some incorrect fail-high logic.

Passed STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 87968 W: 22634 L: 22468 D: 42866
Ptnml(0-2): 315, 10436, 22323, 10588, 322
https://tests.stockfishchess.org/tests/view/65cb3b641d8e83c78bfd04a9

Passed LTC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 70794 W: 17846 L: 17672 D: 35276
Ptnml(0-2): 44, 7980, 19189, 8126, 58
https://tests.stockfishchess.org/tests/view/65cccee21d8e83c78bfd222c

closes #5055

Bench 1203823
  • Loading branch information
cj5716 committed Feb 15, 2024
1 parent bf2c730 commit 6170558
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 @@ -1107,7 +1107,7 @@ Value Search::Worker::search(

// Decrease reduction if position is or has been on the PV (~5 Elo)
if (ss->ttPv)
r -= 1 + (ttValue > alpha) + (ttValue > beta && tte->depth() >= depth);
r -= 1 + (ttValue > alpha) + (tte->depth() >= depth);

// Increase reduction for cut nodes (~4 Elo)
if (cutNode)
Expand Down

0 comments on commit 6170558

Please sign in to comment.