From aba906b734e03f90c7f32587cc845c927483aac8 Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sat, 4 May 2019 07:41:53 -0400 Subject: [PATCH] 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 --- src/search.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 082be4f2..36e73a09 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -594,7 +594,10 @@ namespace { // starts with statScore = 0. Later grandchildren start with the last calculated // statScore of the previous grandchild. This influences the reduction rules in // LMR which are based on the statScore of parent position. - (ss+2)->statScore = 0; + if (rootNode) + (ss + 4)->statScore = 0; + else + (ss + 2)->statScore = 0; // Step 4. Transposition table lookup. We don't want the score of a partial // search to overwrite a previous full search TT value, so we use a different -- 2.39.2