Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --playouts (fixes #520) #521

Merged
merged 1 commit into from
May 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool cfg_quiet;
bool cfg_go_nodes_as_playouts;

void Parameters::setup_default_parameters() {
cfg_allow_pondering = true;
cfg_allow_pondering = false;
cfg_noinitialize = false;
int num_cpus = std::thread::hardware_concurrency();
cfg_max_threads = std::max(1, std::min(num_cpus, MAX_CPUS));
Expand Down
10 changes: 0 additions & 10 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,6 @@ static std::string parse_commandline(int argc, char *argv[]) {
myprintf("RNG seed from cli: %llu\n", cfg_rng_seed);
}

if (vm.count("noponder")) {
cfg_allow_pondering = false;
}

if (vm.count("uci")) {
cfg_noinitialize = true;
}
Expand Down Expand Up @@ -248,12 +244,6 @@ static std::string parse_commandline(int argc, char *argv[]) {

if (vm.count("playouts")) {
cfg_max_playouts = vm["playouts"].as<int>();
if (!vm.count("noponder")) {
myprintf("Nonsensical options: Playouts are restricted but "
"thinking on the opponent's time is still allowed. "
"Add --noponder if you want a weakened engine.\n");
exit(EXIT_FAILURE);
}
if (!vm.count("visits") && !vm.count("nodes")) {
// If the user specifies playouts they probably
// do not want the default 800 nodes.
Expand Down