X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=1bf56c8ea59a4ea8190f3e58b182c1ace6610a9e;hp=f3e9c15d58776c8b79ae5e1565469763ab3bfd50;hb=5bb9da92872f298e6aedb59d728a42dc5719738e;hpb=34c7f1387d514176996144020ac6ac0c603fca4b diff --git a/src/search.cpp b/src/search.cpp index f3e9c15d..1bf56c8e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -171,6 +171,9 @@ namespace { // evaluation of the position is more than NullMoveMargin below beta. const Value NullMoveMargin = Value(0x200); + // Depth limit for use of dynamic threat detection when null move fails low + const Depth ThreatDepth = 5 * OnePly; + // Step 9. Internal iterative deepening const Depth IIDDepthAtPVNodes = 5 * OnePly; @@ -226,9 +229,6 @@ namespace { /// Variables initialized by UCI options - // Depth limit for use of dynamic threat detection - Depth ThreatDepth; - // Last seconds noise filtering (LSN) const bool UseLSNFiltering = true; const int LSNTime = 4000; // In milliseconds @@ -429,8 +429,6 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move, MateThreatExtension[1] = Depth(get_option_value_int("Mate Threat Extension (PV nodes)")); MateThreatExtension[0] = Depth(get_option_value_int("Mate Threat Extension (non-PV nodes)")); - ThreatDepth = get_option_value_int("Threat Depth") * OnePly; - Chess960 = get_option_value_bool("UCI_Chess960"); ShowCurrentLine = get_option_value_bool("UCI_ShowCurrLine"); UseLogFile = get_option_value_bool("Use Search Log");