summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-09-05 21:00:00 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-09-05 21:00:00 +0200
commitc4f3fb147d9610ed878e71755507f1888e4dc7eb (patch)
tree0fa5321e0021ebff61d3267b59969a35e9a1279d
parentb249c261380323f429883e2364fed0060b2ffd54 (diff)
Fixed config that hadn't been tested in a while
-rw-r--r--src/strategy/monte_carlo.rs4
1 files 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<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;
}