diff options
Diffstat (limited to 'tests/monte_carlo_test.rs')
-rw-r--r-- | tests/monte_carlo_test.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/monte_carlo_test.rs b/tests/monte_carlo_test.rs index 832cdb3..71e0b07 100644 --- a/tests/monte_carlo_test.rs +++ b/tests/monte_carlo_test.rs @@ -10,12 +10,12 @@ const STATE_PATH: &str = "tests/state0.json"; #[test] fn it_does_a_normal_turn_successfully() { let start_time = PreciseTime::now(); - let (settings, state) = match input::json::read_bitwise_state_from_file(STATE_PATH) { + let state = match input::json::read_bitwise_state_from_file(STATE_PATH) { Ok(ok) => ok, Err(error) => panic!("Error while parsing JSON file: {}", error) }; let max_time = Duration::milliseconds(200); - strategy::monte_carlo::choose_move(&settings, &state, &start_time, max_time); + strategy::monte_carlo::choose_move(&state, &start_time, max_time); assert!(start_time.to(PreciseTime::now()) < max_time + Duration::milliseconds(50)) } |