Switch to set recommended gensfen UCI options

This commit is contained in:
Tomasz Sobczyk
2020-10-07 11:27:52 +02:00
committed by nodchip
parent 5fa28b12fa
commit d1c44dca04
2 changed files with 12 additions and 0 deletions

View File

@@ -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`.

View File

@@ -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;
}