Skip to content

Commit

Permalink
More reduction at cut nodes which are not a former PV node
Browse files Browse the repository at this point in the history
But the tt move and first killer are excluded.

This idea is based on following LMR condition tuning
https://tests.stockfishchess.org/tests/view/66228bed3fe04ce4cefc0c71 by
using only the two largest terms P[0] and P[1].

Passed STC:
LLR: 2.93 (-2.94,2.94) <0.00,2.00>
Total: 173248 W: 45091 L: 44565 D: 83592
Ptnml(0-2): 693, 20534, 43673, 21002, 722
https://tests.stockfishchess.org/tests/view/6629603b3fe04ce4cefc7d37

Passed LTC:
LLR: 2.94 (-2.94,2.94) <0.50,2.50>
Total: 722394 W: 183231 L: 181487 D: 357676
Ptnml(0-2): 462, 80650, 197252, 82348, 485
https://tests.stockfishchess.org/tests/view/662cbe45d46f72253dcff7bf

closes #5199

Bench: 1619613
  • Loading branch information
locutus2 authored and Disservin committed Apr 28, 2024
1 parent 48a3b7c commit 0fe6428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,9 @@ Value Search::Worker::search(
if (ss->ttPv)
r -= 1 + (ttValue > alpha) + (tte->depth() >= depth);

else if (cutNode && move != ttMove && move != ss->killers[0])
r++;

// Increase reduction for cut nodes (~4 Elo)
if (cutNode)
r += 2 - (tte->depth() >= depth && ss->ttPv);
Expand Down

0 comments on commit 0fe6428

Please sign in to comment.