From d1c44dca042392b2bf0ceb0c8901d52ca92fa023 Mon Sep 17 00:00:00 2001 From: Tomasz Sobczyk Date: Wed, 7 Oct 2020 11:27:52 +0200 Subject: [PATCH] Switch to set recommended gensfen UCI options --- src/docs/gensfen.md | 2 ++ src/learn/gensfen.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/docs/gensfen.md b/src/docs/gensfen.md index 35c08582..e4263a92 100644 --- a/src/docs/gensfen.md +++ b/src/docs/gensfen.md @@ -12,6 +12,8 @@ It is recommended to keep the `EnableTranspositionTable` UCI option at the defau Currently the following options are available: +`set_recommended_uci_options` - this is a modifier not a parameter, no value follows it. If specified then some UCI options are set to recommended values. + `depth` - minimum depth of evaluation of each position. Default: 3. `depth2` - maximum depth of evaluation of each position. If not specified then the same as `depth`. diff --git a/src/learn/gensfen.cpp b/src/learn/gensfen.cpp index 6fc59be9..5720236d 100644 --- a/src/learn/gensfen.cpp +++ b/src/learn/gensfen.cpp @@ -1014,6 +1014,16 @@ namespace Learner is >> sfen_format; else if (token == "seed") is >> seed; + else if (token == "set_recommended_uci_options") + { + UCI::setoption("Contempt", "0"); + UCI::setoption("Skill Level", "20"); + UCI::setoption("UCI_Chess960", "false"); + UCI::setoption("UCI_AnalyseMode", "false"); + UCI::setoption("UCI_LimitStrength", "false"); + UCI::setoption("PruneAtShallowDepth", "false"); + UCI::setoption("EnableTranspositionTable", "true"); + } else cout << "Error! : Illegal token " << token << endl; }