diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-09-08 08:47:24 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-09-08 08:47:24 +0200 |
commit | 188c3c1ef073187cfb957dd5afe1aa0e7c2b6a33 (patch) | |
tree | 8ff2515b468832cee7cddabbf50b024d58a991a2 /src/main.rs | |
parent | 90a7c7d34def7e5f92f2cd521fdc014e0cbd9906 (diff) |
Put selection of full monte carlo tree behind a feature flag
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 26d6eac..05b9546 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,8 @@ fn main() { }; // TODO: Opening playbook? - let command = strategy::monte_carlo::choose_move(&state, start_time, max_time); + #[cfg(feature = "full-monte-carlo-tree")] let command = strategy::monte_carlo_tree::choose_move(&state, start_time, max_time); + #[cfg(not(feature = "full-monte-carlo-tree"))] let command = strategy::monte_carlo::choose_move(&state, start_time, max_time); match write_command(COMMAND_PATH, command) { Ok(()) => {} |