Added reduced time flag
[entelect-challenge-tower-defence.git] / src / main.rs
index e84e207..6434c9d 100644 (file)
@@ -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)
 }