]> git.sesse.net Git - stockfish/commitdiff
Remove essentially unused code
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 20 Sep 2018 12:50:39 +0000 (14:50 +0200)
committerStéphane Nicolet <cassio@free.fr>
Thu, 27 Sep 2018 19:28:38 +0000 (21:28 +0200)
this was added recently as part of a larger commit, but only changes eval of positions at MAX_PLY depth a little. Can be safely removed:

passed STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 7424 W: 1640 L: 1492 D: 4292
http://tests.stockfishchess.org/html/live_elo.html?5ba3bcbe0ebc592cf27677ff

passed LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 73554 W: 12028 L: 11990 D: 49536
http://tests.stockfishchess.org/html/live_elo.html?5ba397ee0ebc592cf2767556

unchanged Bench: 4248710

src/search.cpp

index 1303e1fb08f7c587ea02b192fca7d8ec32c7e90c..8d325a8e71d7b7faca4c8cdb0fec89a6840571ea 100644 (file)
@@ -584,8 +584,7 @@ namespace {
         if (   Threads.stop.load(std::memory_order_relaxed)
             || pos.is_draw(ss->ply)
             || ss->ply >= MAX_PLY)
-            return (ss->ply >= MAX_PLY && !inCheck) ? evaluate(pos) - 10 * ((ss-1)->statScore > 0)
-                                                    : VALUE_DRAW;
+            return (ss->ply >= MAX_PLY && !inCheck) ? evaluate(pos) : VALUE_DRAW;
 
         // Step 3. Mate distance pruning. Even if we mate at the next move our score
         // would be at best mate_in(ss->ply+1), but if alpha is already bigger because