summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4c11e57..b215a34 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,3 +16,4 @@ rayon = "1.0.1"
benchmarking = []
single-threaded = []
energy-cutoff = []
+reduced-time = []
diff --git a/src/main.rs b/src/main.rs
index e84e207..6434c9d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,9 @@ use std::io::prelude::*;
use std::process;
fn choose_move(settings: &engine::settings::GameSettings, state: &engine::GameState, start_time: &PreciseTime) -> Command {
- let max_time = Duration::milliseconds(1950);
+ #[cfg(not(feature = "reduced-time"))] let max_time = Duration::milliseconds(1950);
+ #[cfg(feature = "reduced-time")] let max_time = Duration::milliseconds(950);
+
strategy::monte_carlo::choose_move(settings, state, start_time, max_time)
}