X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=c99644f2c37641f82d590d67084eb89319446155;hp=1b8665546a20297d1047c564db736cec0f7800ea;hb=4d9e9ac3d45190f4d92030fe9de2637344018f0a;hpb=d6b04c27989bba77b23474f5b6f75974c7199644 diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 1b866554..c99644f2 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -123,8 +123,9 @@ 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); @@ -169,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; + } + } ////