]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Use calculate_reduction() function to simplify code
[stockfish] / src / ucioption.cpp
index 9bcd960b6a157f535d44dfaa030f64d1519849ef..dc1effa856f50c2d29de6c9dd3040913b68ee9f7 100644 (file)
@@ -116,8 +116,6 @@ 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(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);
@@ -198,10 +196,14 @@ void init_uci_options() {
 
   // Set optimal value for parameter "Minimum Split Depth"
   // according to number of available cores.
+  assert(options.find("Threads") != options.end());
   assert(options.find("Minimum Split Depth") != options.end());
 
+  Option& thr = options["Threads"];
   Option& msd = options["Minimum Split Depth"];
 
+  thr.defaultValue = thr.currentValue = stringify(cpu_count());
+
   if (cpu_count() >= 8)
       msd.defaultValue = msd.currentValue = stringify(7);
 }