From c4f3fb147d9610ed878e71755507f1888e4dc7eb Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Wed, 5 Sep 2018 21:00:00 +0200 Subject: Fixed config that hadn't been tested in a while --- src/strategy/monte_carlo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/monte_carlo.rs b/src/strategy/monte_carlo.rs index 7baba17..8627a00 100644 --- a/src/strategy/monte_carlo.rs +++ b/src/strategy/monte_carlo.rs @@ -87,9 +87,9 @@ fn debug_print_choices Option<(Point, i32)>>(label: & } #[cfg(not(feature = "discard-poor-performers"))] -fn simulate_options_to_timeout(command_scores: &'a mut Vec, settings: &GameSettings, state: &BitwiseGameState, start_time: PreciseTime, max_time: Duration) -> Option<&'a CommandScore> { +fn simulate_options_to_timeout<'a>(command_scores: &'a mut Vec, state: &BitwiseGameState, start_time: PreciseTime, max_time: Duration) -> Option<&'a CommandScore> { loop { - simulate_all_options_once(command_scores, settings, state); + simulate_all_options_once(command_scores, state); if start_time.to(PreciseTime::now()) > max_time { break; } -- cgit v1.2.3