summaryrefslogtreecommitdiff
path: root/tests/monte_carlo_test.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-15 22:55:55 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-15 22:55:55 +0200
commit8f88b294511b786e8ae518594eceafb8da9d3f34 (patch)
tree70e522a4ace3d7702ac20a8e7d90962aec10470a /tests/monte_carlo_test.rs
parent02e5c2a8687a0beb907a29121a9d8dbe8c672530 (diff)
Flipped bitfields on the opponent side to make implementation more concise
Diffstat (limited to 'tests/monte_carlo_test.rs')
-rw-r--r--tests/monte_carlo_test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/monte_carlo_test.rs b/tests/monte_carlo_test.rs
index 87feadb..832cdb3 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_expressive_state_from_file(STATE_PATH) {
+ let (settings, 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);
- assert!(start_time.to(PreciseTime::now()) < max_time + Duration::milliseconds(10))
+ assert!(start_time.to(PreciseTime::now()) < max_time + Duration::milliseconds(50))
}