mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user