Skip to content

Commit 40c6cdf

Browse files
cj5716TierynnB
authored andcommitted
Simplify TT PV reduction
This also removes some incorrect fail-high logic. Passed STC: https://tests.stockfishchess.org/tests/view/65cb3b641d8e83c78bfd04a9 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 Passed LTC: https://tests.stockfishchess.org/tests/view/65cccee21d8e83c78bfd222c 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 closes official-stockfish#5055 Bench: 1474424
1 parent 9299d01 commit 40c6cdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,9 @@ Value Search::Worker::search(
10981098
thisThread->nodes.fetch_add(1, std::memory_order_relaxed);
10991099
pos.do_move(move, st, givesCheck);
11001100

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

11051105
// Increase reduction for cut nodes (~4 Elo)
11061106
if (cutNode)

0 commit comments

Comments
 (0)