Skip to content

Commit

Permalink
Modify ttPV reduction
Browse files Browse the repository at this point in the history
This patch modifies ttPV reduction by reducing 1 more unless ttValue is above alpha.

Inspired from @pb00068 https://tests.stockfishchess.org/tests/view/658060796a3b4f6202215f1f

Passed STC:
https://tests.stockfishchess.org/tests/view/6591867679aa8af82b958328
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 37856 W: 9727 L: 9407 D: 18722
Ptnml(0-2): 99, 4444, 9568, 4672, 145

Passed LTC:
https://tests.stockfishchess.org/tests/view/6591d9b679aa8af82b958a6c
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 128256 W: 32152 L: 31639 D: 64465
Ptnml(0-2): 64, 14364, 34772, 14851, 77

closes #4957

Bench: 1176235
  • Loading branch information
Viren6 authored and Disservin committed Jan 4, 2024
1 parent 5546bc0 commit 28f8663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -1152,7 +1152,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo

// Decrease reduction if position is or has been on the PV (~4 Elo)
if (ss->ttPv && !likelyFailLow)
r -= cutNode && tte->depth() >= depth ? 3 : 2;
r -= 1 + (cutNode && tte->depth() >= depth) + (ttValue > alpha);

// Decrease reduction if opponent's move count is high (~1 Elo)
if ((ss - 1)->moveCount > 7)
Expand Down

0 comments on commit 28f8663

Please sign in to comment.