summaryrefslogtreecommitdiff
path: root/src/strategy/sample.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-05-14 21:51:36 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-05-14 21:51:36 +0200
commit6c7eac5e5fc166759dbbf22f0ca28fd1b636de52 (patch)
treed892b7a712c7d49d8bb870eeef8eefe672d1795a /src/strategy/sample.rs
parent91c5c52431c894315d5ef72a7c9480b3b09d1745 (diff)
Added profiling target with perf
Diffstat (limited to 'src/strategy/sample.rs')
-rw-r--r--src/strategy/sample.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/strategy/sample.rs b/src/strategy/sample.rs
index 72ab66c..2dad924 100644
--- a/src/strategy/sample.rs
+++ b/src/strategy/sample.rs
@@ -1,11 +1,9 @@
use engine;
use engine::command::*;
-use time::PreciseTime;
-
use rand::{thread_rng, Rng};
-pub fn choose_move(settings: &engine::settings::GameSettings, state: &engine::GameState, _start_time: &PreciseTime) -> Command {
+pub fn choose_move(settings: &engine::settings::GameSettings, state: &engine::GameState) -> Command {
let mut rng = thread_rng();
if state.player.can_afford_defence_buildings(settings) {