summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-08-11 12:28:38 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-08-11 12:28:38 +0200
commitb3d48c9924a2502ba7e93bafb0a8afcd096bec76 (patch)
treee2237839759e3e44788c8aa482eff27b375cf6cd /src/bin
parentf663267dd78b99322e70aba6417955221564d733 (diff)
Replaced hashmaps with deterministic hashmaps
I'm not worried about ddos attacks here, and this also has better perf for small keys.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/explore-config.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/explore-config.rs b/src/bin/explore-config.rs
index 2d880d9..33ff82b 100644
--- a/src/bin/explore-config.rs
+++ b/src/bin/explore-config.rs
@@ -29,6 +29,7 @@ fn main() {
choose_move_with_normalized_perf(&state, &config2, 1, depth),
];
state.simulate(commands);
+ println!("Commands: {:?}", commands);
}
println!("{:?}", state.outcome);
@@ -36,7 +37,11 @@ fn main() {
"Runtime: {}ms",
start_time.to(PreciseTime::now()).num_milliseconds()
);
- println!("{}", state.players[0].health());
- println!("{}", state.players[1].health());
+ println!(
+ "Health: {} - {}",
+ state.players[0].health(),
+ state.players[1].health()
+ );
+ println!("Round: {}", state.round);
}
}