From 8f5deaea61e8aa754b324b809cc8f7f394dc7e0f Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 29 Nov 2013 10:50:14 +0100 Subject: [PATCH] Restore development version bench: 8596156 --- polyglot.ini | 2 +- src/misc.cpp | 2 +- src/uci.cpp | 3 ++- src/ucioption.cpp | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/polyglot.ini b/polyglot.ini index 26320f4d..739ed876 100644 --- a/polyglot.ini +++ b/polyglot.ini @@ -32,7 +32,7 @@ Cowardice = 100 Min Split Depth = 0 Max Threads per Split Point = 5 Threads = 1 -Idle Threads Sleep = false +Idle Threads Sleep = true Hash = 128 Ponder = true OwnBook = false diff --git a/src/misc.cpp b/src/misc.cpp index d11ab8d7..b9a802ad 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -28,7 +28,7 @@ using namespace std; /// Version number. If Version is left empty, then compile date, in the /// format DD-MM-YY, is shown in engine_info. -static const string Version = "DD"; +static const string Version = ""; /// engine_info() returns the full name of the current Stockfish version. This diff --git a/src/uci.cpp b/src/uci.cpp index caf1b5c2..395b78a8 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -27,6 +27,7 @@ #include "position.h" #include "search.h" #include "thread.h" +#include "tt.h" #include "ucioption.h" using namespace std; @@ -107,7 +108,7 @@ void UCI::loop(const string& args) { Search::RootColor = pos.side_to_move(); // Ensure it is set sync_cout << Eval::trace(pos) << sync_endl; } - else if (token == "ucinewgame") { /* Avoid returning "Unknown command" */ } + else if (token == "ucinewgame") TT.clear(); else if (token == "go") go(pos, is); else if (token == "position") position(pos, is); else if (token == "setoption") setoption(is); diff --git a/src/ucioption.cpp b/src/ucioption.cpp index c8dc7f46..08afa04c 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -72,7 +72,7 @@ void init(OptionsMap& o) { o["Min Split Depth"] = Option(0, 0, 12, on_threads); o["Max Threads per Split Point"] = Option(5, 4, 8, on_threads); o["Threads"] = Option(1, 1, MAX_THREADS, on_threads); - o["Idle Threads Sleep"] = Option(false); + o["Idle Threads Sleep"] = Option(true); o["Hash"] = Option(32, 1, 8192, on_hash_size); o["Clear Hash"] = Option(on_clear_hash); o["Ponder"] = Option(true); -- 2.39.2