]> git.sesse.net Git - stockfish/commitdiff
Remove set statScore to zero
authorsilversolver1 <61594747+silversolver1@users.noreply.github.com>
Sun, 8 Mar 2020 19:52:05 +0000 (14:52 -0500)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 9 Mar 2020 21:46:13 +0000 (22:46 +0100)
Simplification. Removes setting statScore to zero if negative.

STC:
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 84820 W: 16100 L: 16033 D: 52687
Ptnml(0-2): 1442, 9865, 19723, 9944, 1436
https://tests.stockfishchess.org/tests/view/5e654fdae42a5c3b3ca2e2f8

LTC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 57658 W: 7435 L: 7391 D: 42832
Ptnml(0-2): 441, 5397, 17104, 5451, 436
https://tests.stockfishchess.org/tests/view/5e657ce9e42a5c3b3ca2e307

closes https://github.com/official-stockfish/Stockfish/pull/2578

Bench: 5168890

AUTHORS
src/search.cpp

diff --git a/AUTHORS b/AUTHORS
index 7657acee6b7049e2b872333ad43101634a8031d7..4826d1c4c3c03c13975bf631e6094cb28a6f6137 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -123,6 +123,7 @@ Pasquale Pigazzini (ppigazzini)
 Patrick Jansen (mibere)
 pellanda
 Peter Zsifkovits (CoffeeOne)
+Rahul Dsilva (silversolver1)
 Ralph Stößer (Ralph Stoesser)
 Raminder Singh
 renouve
@@ -158,7 +159,3 @@ Vince Negri (cuddlestmonkey)
 # an amazing and essential framework for the development of Stockfish!
 #
 # https://github.com/glinscott/fishtest/blob/master/AUTHORS
-
-
-
-
index 3d130efcdb2e790917470f6fe968e0bd19ee14a2..f9910fb72087dae7f4c2750fd748978d09c7f61d 100644 (file)
@@ -1175,13 +1175,6 @@ moves_loop: // When in check, search starts from here
                              + (*contHist[3])[movedPiece][to_sq(move)]
                              - 4926;
 
-              // Reset statScore to zero if negative and most stats shows >= 0
-              if (    ss->statScore < 0
-                  && (*contHist[0])[movedPiece][to_sq(move)] >= 0
-                  && (*contHist[1])[movedPiece][to_sq(move)] >= 0
-                  && thisThread->mainHistory[us][from_to(move)] >= 0)
-                  ss->statScore = 0;
-
               // Decrease/increase reduction by comparing opponent's stat score (~10 Elo)
               if (ss->statScore >= -102 && (ss-1)->statScore < -114)
                   r--;