From f4870c117d00519d044b50a7ea3f4a83d020b848 Mon Sep 17 00:00:00 2001 From: Dubslow Date: Fri, 4 May 2018 22:34:07 -0500 Subject: [PATCH] Fully remove --no-ponder, disabled by default Fixes #520 --- src/Parameters.cpp | 2 +- src/main.cpp | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Parameters.cpp b/src/Parameters.cpp index 56615ffea..5157d71d1 100644 --- a/src/Parameters.cpp +++ b/src/Parameters.cpp @@ -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)); diff --git a/src/main.cpp b/src/main.cpp index 52b39fadc..bed968cd5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } @@ -248,12 +244,6 @@ static std::string parse_commandline(int argc, char *argv[]) { if (vm.count("playouts")) { cfg_max_playouts = vm["playouts"].as(); - 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.