X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=c99644f2c37641f82d590d67084eb89319446155;hp=c1b351379df98f2e4a5316e0d262c933d4df72db;hb=4d9e9ac3d45190f4d92030fe9de2637344018f0a;hpb=e33c94883fb1767a8aae29e8004d0621d296e33b diff --git a/src/ucioption.cpp b/src/ucioption.cpp index c1b35137..c99644f2 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -123,16 +123,15 @@ namespace { o["Minimum Split Depth"] = Option(4, 4, 7); o["Maximum Number of Threads per Split Point"] = Option(5, 4, 8); o["Threads"] = Option(1, 1, 8); - o["Hash"] = Option(32, 4, 4096); + o["Hash"] = Option(32, 4, 2048); o["Clear Hash"] = Option(false, BUTTON); + o["New Game"] = Option(false, BUTTON); o["Ponder"] = Option(true); o["OwnBook"] = Option(true); o["MultiPV"] = Option(1, 1, 500); o["UCI_ShowCurrLine"] = Option(false); o["UCI_Chess960"] = Option(false); o["UCI_AnalyseMode"] = Option(false); - o["UCI_LimitStrength"] = Option(false); - o["UCI_Elo"] = Option(2900, 2100, 2900); // Any option should know its name so to be easily printed for (Options::iterator it = o.begin(); it != o.end(); ++it) @@ -171,6 +170,18 @@ namespace { return ret; } + // Specialization for std::string where instruction 'ss >> ret;' + // would erroneusly tokenize a string with spaces. + + template<> + string get_option_value(const string& optionName) { + + if (options.find(optionName) == options.end()) + return string(); + + return options[optionName].currentValue; + } + } ////