Skip to content

Commit aba906b

Browse files
VoyagerOnemcostalba
authored andcommitted
Stat Score reset at rootNode - Bench: 3393330 (#2124)
At rootNode reset great great grandchildren stat score i.e (ss + 4)->statScore = 0 STC: (yellow) LLR: -2.96 (-2.94,2.94) [0.50,4.50] Total: 256079 W: 57423 L: 56315 D: 142341 http://tests.stockfishchess.org/tests/view/5ccb0c420ebc5925cf03a6a5 LTC: LLR: 2.95 (-2.94,2.94) [0.00,3.50] Total: 61550 W: 10611 L: 10260 D: 40679 http://tests.stockfishchess.org/tests/view/5ccbf9d00ebc5925cf03c487 Bench: 3393330
1 parent 4e72e2a commit aba906b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/search.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,10 @@ namespace {
594594
// starts with statScore = 0. Later grandchildren start with the last calculated
595595
// statScore of the previous grandchild. This influences the reduction rules in
596596
// LMR which are based on the statScore of parent position.
597-
(ss+2)->statScore = 0;
597+
if (rootNode)
598+
(ss + 4)->statScore = 0;
599+
else
600+
(ss + 2)->statScore = 0;
598601

599602
// Step 4. Transposition table lookup. We don't want the score of a partial
600603
// search to overwrite a previous full search TT value, so we use a different

0 commit comments

Comments
 (0)