From c1264e46d06fc096c7f43206ec32b3121bf30a1e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 11 Jul 2013 16:01:33 +0200 Subject: [PATCH] Rename some UCI options 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 | 6 ++++-- src/search.cpp | 8 ++++---- src/ucioption.cpp | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/polyglot.ini b/polyglot.ini index ccf17022..73084958 100644 --- a/polyglot.ini +++ b/polyglot.ini @@ -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 diff --git a/src/search.cpp b/src/search.cpp index c7798c87..23629e6d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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) diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 3afa59d3..5cc0de56 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -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); -- 2.39.2