Skip to content

Commit 9eb7b60

Browse files
committed
Reduce depth after score improvement at PV nodes
STC: LLR: 2.95 (-2.94,2.94) <0.00,2.50> Total: 73760 W: 19590 L: 19244 D: 34926 Ptnml(0-2): 285, 8352, 19292, 8634, 317 https://tests.stockfishchess.org/tests/view/626eb2dc9116b52aa83b73da LTC: LLR: 2.93 (-2.94,2.94) <0.50,3.00> Total: 114400 W: 30561 L: 30111 D: 53728 Ptnml(0-2): 68, 11432, 33785, 11812, 103 https://tests.stockfishchess.org/tests/view/626f730859e9c431e0b10b21 closes #4008 bench: 6174823
1 parent a32d208 commit 9eb7b60

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/search.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,18 @@ namespace {
13001300
update_pv(ss->pv, move, (ss+1)->pv);
13011301

13021302
if (PvNode && value < beta) // Update alpha! Always alpha < beta
1303+
{
13031304
alpha = value;
1305+
1306+
// Reduce other moves if we have found at least one score improvement
1307+
if ( depth > 2
1308+
&& depth < 7
1309+
&& beta < VALUE_KNOWN_WIN
1310+
&& alpha > -VALUE_KNOWN_WIN)
1311+
depth -= 1;
1312+
1313+
assert(depth > 0);
1314+
}
13041315
else
13051316
{
13061317
ss->cutoffCnt++;

0 commit comments

Comments
 (0)