diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-05-12 22:37:48 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-05-12 22:37:48 +0200 |
commit | 02256124fbd57d88effd02c046093ecaf73b77e3 (patch) | |
tree | 9b4b33a6119e92b40c808677771d2e95e9971933 /src/strategy/sample.rs | |
parent | d14ec12e30852f8a93f310f5c53fce6ab6f1c6c5 (diff) |
Limited bot to run within the 2 second window
Diffstat (limited to 'src/strategy/sample.rs')
-rw-r--r-- | src/strategy/sample.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/strategy/sample.rs b/src/strategy/sample.rs index 2dad924..72ab66c 100644 --- a/src/strategy/sample.rs +++ b/src/strategy/sample.rs @@ -1,9 +1,11 @@ use engine; use engine::command::*; +use time::PreciseTime; + use rand::{thread_rng, Rng}; -pub fn choose_move(settings: &engine::settings::GameSettings, state: &engine::GameState) -> Command { +pub fn choose_move(settings: &engine::settings::GameSettings, state: &engine::GameState, _start_time: &PreciseTime) -> Command { let mut rng = thread_rng(); if state.player.can_afford_defence_buildings(settings) { |