From 59f7ecdea273442f1c06569f05632cac0000f93f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 12 Aug 2019 19:45:19 +0200 Subject: [PATCH] Revert "Revert "Revert "Shuffle detection #2064""" This reverts commit ca6ce6398b1bd21ff2ac29b2dc27d7c25abbb509. --- src/search.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 53f61a97..98419b20 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -662,15 +662,6 @@ namespace { : ttHit ? tte->move() : MOVE_NONE; ttPv = PvNode || (ttHit && tte->is_pv()); - // if position has been searched at higher depths and we are shuffling, return value_draw - if (pos.rule50_count() > 36 - && ss->ply > 36 - && depth < 3 * ONE_PLY - && ttHit - && tte->depth() > depth - && pos.count() > 0) - return VALUE_DRAW; - // At non-PV nodes we check for an early TT cutoff if ( !PvNode && ttHit @@ -998,10 +989,6 @@ moves_loop: // When in check, search starts from here && (pos.is_discovery_check_on_king(~us, move) || pos.see_ge(move))) extension = ONE_PLY; - // Shuffle extension - else if(pos.rule50_count() > 14 && ss->ply > 14 && depth < 3 * ONE_PLY && PvNode) - extension = ONE_PLY; - // Castling extension else if (type_of(move) == CASTLING) extension = ONE_PLY; -- 2.39.2