]> git.sesse.net Git - stockfish/commitdiff
Rename some UCI options
authorMarco Costalba <mcostalba@gmail.com>
Thu, 11 Jul 2013 14:01:33 +0000 (16:01 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 11 Jul 2013 14:07:10 +0000 (16:07 +0200)
Thanks to Don, Miguel, Louis and the other people
of talkchess forum for the suggestion:

http://www.talkchess.com/forum/viewtopic.php?t=48612

Also sync polyglot.ini with current UCI options

No functional change.

polyglot.ini
src/search.cpp
src/ucioption.cpp

index ccf17022ecf82c176ff54e6e282ed92d2a57d0b5..73084958bc00e5d80f77914f5658c552b427b803 100644 (file)
@@ -14,7 +14,8 @@ ResignScore = 600
 
 [Engine]
 
-Use Search Log = false
+Write Debug Log = false
+Write Search Log = false
 Search Log Filename = SearchLog.txt
 Book File = book.bin
 Best Book Move = false
@@ -31,7 +32,7 @@ Cowardice = 100
 Min Split Depth = 4
 Max Threads per Split Point = 5
 Threads = 1
-Use Sleeping Threads = true
+Idle Threads Sleep = true
 Hash = 128
 Ponder = true
 OwnBook = false
@@ -41,5 +42,6 @@ Emergency Move Horizon = 40
 Emergency Base Time = 200
 Emergency Move Time = 70
 Minimum Thinking Time = 20
+Slow Mover = 100
 UCI_Chess960 = false
 UCI_AnalyseMode = false
index c7798c873d6286980983440f9ddfb3142f83c327..23629e6db9c0ebbdbf1d48a25081b485367ba76b 100644 (file)
@@ -215,7 +215,7 @@ void Search::think() {
   else
       DrawValue[WHITE] = DrawValue[BLACK] = VALUE_DRAW;
 
-  if (Options["Use Search Log"])
+  if (Options["Write Search Log"])
   {
       Log log(Options["Search Log Filename"]);
       log << "\nSearching: "  << RootPos.fen()
@@ -231,7 +231,7 @@ void Search::think() {
   for (size_t i = 0; i < Threads.size(); i++)
       Threads[i]->maxPly = 0;
 
-  Threads.sleepWhileIdle = Options["Use Sleeping Threads"];
+  Threads.sleepWhileIdle = Options["Idle Threads Sleep"];
 
   // Set best timer interval to avoid lagging under time pressure. Timer is
   // used to check for remaining available thinking time.
@@ -247,7 +247,7 @@ void Search::think() {
   Threads.timer->msec = 0; // Stop the timer
   Threads.sleepWhileIdle = true; // Send idle threads to sleep
 
-  if (Options["Use Search Log"])
+  if (Options["Write Search Log"])
   {
       Time::point elapsed = Time::now() - SearchTime + 1;
 
@@ -402,7 +402,7 @@ namespace {
         if (skill.enabled() && skill.time_to_pick(depth))
             skill.pick_move();
 
-        if (Options["Use Search Log"])
+        if (Options["Write Search Log"])
         {
             RootMove& rm = RootMoves[0];
             if (skill.best != MOVE_NONE)
index 3afa59d3137ebf6afe8423491ed5fbe22d9c64d9..5cc0de563df524f82bf56276f2a1528e7249201d 100644 (file)
@@ -59,8 +59,8 @@ void init(OptionsMap& o) {
   int cpus = std::min(cpu_count(), MAX_THREADS);
   int msd = cpus < 8 ? 4 : 7;
 
-  o["Use Debug Log"]               = Option(false, on_logger);
-  o["Use Search Log"]              = Option(false);
+  o["Write Debug Log"]             = Option(false, on_logger);
+  o["Write Search Log"]            = Option(false);
   o["Search Log Filename"]         = Option("SearchLog.txt");
   o["Book File"]                   = Option("book.bin");
   o["Best Book Move"]              = Option(false);
@@ -77,7 +77,7 @@ void init(OptionsMap& o) {
   o["Min Split Depth"]             = Option(msd, 4, 12, on_threads);
   o["Max Threads per Split Point"] = Option(5, 4, 8, on_threads);
   o["Threads"]                     = Option(cpus, 1, MAX_THREADS, on_threads);
-  o["Use Sleeping Threads"]        = Option(true);
+  o["Idle Threads Sleep"]          = Option(true);
   o["Hash"]                        = Option(32, 1, 8192, on_hash_size);
   o["Clear Hash"]                  = Option(on_clear_hash);
   o["Ponder"]                      = Option(true);