]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Use std::stable_sort() instead of std::sort()
[stockfish] / src / ucioption.cpp
index 57264166b702fd062dcece96e8ad341a9f9289a3..6e727954e68095a6896a03ac3fc5f1fbc2a4db74 100644 (file)
@@ -116,7 +116,7 @@ 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);
@@ -131,8 +131,6 @@ namespace {
     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)
@@ -212,7 +210,7 @@ void print_uci_options() {
   for (Options::const_iterator it = options.begin(); it != options.end(); ++it)
       vec.push_back(it->second);
 
-  std::sort(vec.begin(), vec.end());
+  std::stable_sort(vec.begin(), vec.end());
 
   for (std::vector<Option>::const_iterator it = vec.begin(); it != vec.end(); ++it)
   {