diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-08-09 20:40:03 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-08-09 20:40:03 +0200 |
commit | ea78e266cff3f57c39442aefc21295a758419e69 (patch) | |
tree | 8f5f707affbd546efb43b9a638d2f9ff6bd52116 /tests/monte_carlo_test.rs | |
parent | f41255a8dda9e2c6a18c32564a30e63eed58f6b3 (diff) |
Removed dynamic settings
It worked really well for round 2 to set constants
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)) } |