Fixed config that hadn't been tested in a while
authorJustin Worthe <justin@worthe-it.co.za>
Wed, 5 Sep 2018 19:00:00 +0000 (21:00 +0200)
committerJustin Worthe <justin@worthe-it.co.za>
Wed, 5 Sep 2018 19:00:00 +0000 (21:00 +0200)
src/strategy/monte_carlo.rs

index 7baba17..8627a00 100644 (file)
@@ -87,9 +87,9 @@ fn debug_print_choices<F: FnMut(&CommandScore) -> Option<(Point, i32)>>(label: &
 }
 
 #[cfg(not(feature = "discard-poor-performers"))]
-fn simulate_options_to_timeout(command_scores: &'a mut Vec<CommandScore>, settings: &GameSettings, state: &BitwiseGameState, start_time: PreciseTime, max_time: Duration) -> Option<&'a CommandScore> {
+fn simulate_options_to_timeout<'a>(command_scores: &'a mut Vec<CommandScore>, 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;
         }