X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=c99644f2c37641f82d590d67084eb89319446155;hp=a0269464db99f7d5ee1b26f08a70140602d6aaea;hb=4d9e9ac3d45190f4d92030fe9de2637344018f0a;hpb=b8326edea3081e9e00bce7bb0929005f4be45cbf diff --git a/src/ucioption.cpp b/src/ucioption.cpp index a0269464..c99644f2 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -116,15 +116,16 @@ namespace { o["Passed Pawn Extension (non-PV nodes)"] = Option(0, 0, 2); o["Pawn Endgame Extension (PV nodes)"] = Option(2, 0, 2); o["Pawn Endgame Extension (non-PV nodes)"] = Option(2, 0, 2); - o["Full Depth Moves (PV nodes)"] = Option(14, 1, 100); + o["Full Depth Moves (PV nodes)"] = Option(10, 1, 100); o["Full Depth Moves (non-PV nodes)"] = Option(3, 1, 100); o["Threat Depth"] = Option(5, 0, 100); o["Randomness"] = Option(0, 0, 10); 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; + } + } //// @@ -192,15 +205,6 @@ void init_uci_options() { options["Threads"].defaultValue = stringify(Min(cpu_count(), 7)); options["Threads"].currentValue = stringify(Min(cpu_count(), 7)); - - // Increase the minimum split depth when the number of CPUs is big. - // It would probably be better to let this depend on the number of threads - // instead. - if (cpu_count() > 4) - { - options["Minimum Split Depth"].defaultValue = "6"; - options["Minimum Split Depth"].currentValue = "6"; - } }