diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-06-30 15:09:25 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-06-30 15:09:25 +0200 |
commit | 28af1786f35801c375a870b9bfbbfe3640aa872d (patch) | |
tree | b92514fe2579ceb8bca59d7ffba50a04e9edd4ea /src/main.rs | |
parent | 8d5f075021d8459766493e115ddf7b5eb4e314a1 (diff) |
Initial stab at putting game engine behind a trait
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index f3d9373..61e2e55 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use std::fs::File; use std::io::prelude::*; use std::process; -fn choose_move(settings: &engine::settings::GameSettings, state: &engine::GameState, start_time: &PreciseTime) -> Command { +fn choose_move<GS:engine::GameState>(settings: &engine::settings::GameSettings, state: &GS, start_time: &PreciseTime) -> Command { #[cfg(not(feature = "reduced-time"))] #[cfg(not(feature = "extended-time"))] let max_time = Duration::milliseconds(1950); |