Skip to content

Commit

Permalink
Increase reduction at root
Browse files Browse the repository at this point in the history
when the best move does not change frequently

STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 51320 W: 5159 L: 4956 D: 41205
Ptnml(0-2): 215, 3897, 17242, 4082, 224
https://tests.stockfishchess.org/tests/view/5faa072367cbf42301d6a767

LTC:
LLR: 2.98 (-2.94,2.94) {0.25,1.25}
Total: 15952 W: 762 L: 642 D: 14548
Ptnml(0-2): 8, 561, 6725, 667, 15
https://tests.stockfishchess.org/tests/view/5faa4c3567cbf42301d6a794

closes official-stockfish/Stockfish#3225

Bench: 3954692
  • Loading branch information
vondele committed Nov 10, 2020
1 parent b578115 commit bbed64a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Jekaa
Jerry Donald Watson (jerrydonaldwatson)
jjoshua2
Jonathan Calovski (Mysseno)
Jonathan Dumale (SFisGOD)
Jonathan Buladas Dumale (SFisGOD)
Joost VandeVondele (vondele)
Jörg Oster (joergoster)
Joseph Ellis (jhellis3)
Expand Down
5 changes: 3 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,15 +1161,16 @@ namespace {
if (thisThread->ttHitAverage > 509 * TtHitAverageResolution * TtHitAverageWindow / 1024)
r--;

// Reduction if other threads are searching this position
// Increase reduction if other threads are searching this position
if (th.marked())
r++;

// Decrease reduction if position is or has been on the PV (~10 Elo)
if (ss->ttPv)
r -= 2;

if (!PvNode && depth > 10 && thisThread->bestMoveChanges <= 2)
// Increase reduction at root and non-PV nodes when the best move does not change frequently
if ((rootNode || !PvNode) && depth > 10 && thisThread->bestMoveChanges <= 2)
r++;

if (moveCountPruning && !formerPv)
Expand Down

0 comments on commit bbed64a

Please sign in to comment.