Skip to content

Commit 3a572ff

Browse files
xoto10mcostalba
xoto10
authored andcommitted
Update failedHighCnt rule #2063
Treat all threads the same as main thread and increment failedHighCnt on fail highs. This makes the search try again at lower depth. @vondele suggested also changing the reset of failedHighCnt when there is a fail low. Tests including this passed so the branch has been updated to include both changes. failedHighCnt is now handled exactly the same in helper threads and the main thread. Thanks vondele :-) STC @ 5+0.05 th 4 : LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 7769 W: 1704 L: 1557 D: 4508 http://tests.stockfishchess.org/tests/view/5c9f19520ebc5925cfffd2a1 LTC @ 20+0.2 th 8 : LLR: 2.94 (-2.94,2.94) [-3.00,1.00] Total: 37888 W: 5983 L: 5889 D: 26016 http://tests.stockfishchess.org/tests/view/5c9f57d10ebc5925cfffd696 Bench 3824325
1 parent 02708a4 commit 3a572ff

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/search.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,17 +404,14 @@ void Thread::search() {
404404
beta = (alpha + beta) / 2;
405405
alpha = std::max(bestValue - delta, -VALUE_INFINITE);
406406

407+
failedHighCnt = 0;
407408
if (mainThread)
408-
{
409-
failedHighCnt = 0;
410409
mainThread->stopOnPonderhit = false;
411-
}
412410
}
413411
else if (bestValue >= beta)
414412
{
415413
beta = std::min(bestValue + delta, VALUE_INFINITE);
416-
if (mainThread)
417-
++failedHighCnt;
414+
++failedHighCnt;
418415
}
419416
else
420417
break;

0 commit comments

Comments
 (0)