Skip to content

Commit

Permalink
Extend captures and promotions
Browse files Browse the repository at this point in the history
This patch introduces extension for captures and promotions. Every capture or
promotion that is not the first move in the list gets extended at PvNodes and
cutNodes. Special thanks to @locutus2 - all my previous attepmts that failed
on this idea were done only for PvNodes - idea to include also cutNodes was
based on his latest passed patch.

STC
https://tests.stockfishchess.org/tests/view/6134abf325b9b35584838574
LLR: 2.95 (-2.94,2.94) <-0.50,2.50>
Total: 188920 W: 47754 L: 47304 D: 93862
Ptnml(0-2): 595, 21754, 49344, 22140, 627

LTC
https://tests.stockfishchess.org/tests/view/613521de25b9b355848385d7
LLR: 2.93 (-2.94,2.94) <0.50,3.50>
Total: 8768 W: 2283 L: 2098 D: 4387
Ptnml(0-2): 7, 866, 2452, 1053, 6

closes official-stockfish#3692

bench: 5564555
  • Loading branch information
Vizvezdenec authored and Joachim26 committed Mar 28, 2023
1 parent 09cc395 commit 2c2031a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,14 @@ namespace {
return beta;
}
}

// Capture extensions for PvNodes and cutNodes
else if ( (PvNode || cutNode)
&& captureOrPromotion
&& moveCount != 1)
extension = 1;

// Check extensions
else if ( givesCheck
&& depth > 6
&& abs(ss->staticEval) > Value(100))
Expand Down

0 comments on commit 2c2031a

Please sign in to comment.