summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-07-16 20:53:09 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-07-16 20:53:09 +0200
commit8da292fa587a06deabb377af18498f9cec10c79d (patch)
tree17f9fb280bf3882ef7445f91b4e0ebe682522eaf
parent796fd3406ccd5c12f2aef72c603a4445a08fa27a (diff)
Commented missed debug logging
-rw-r--r--src/strategy/minimax.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/strategy/minimax.rs b/src/strategy/minimax.rs
index 699a4f6..f87d850 100644
--- a/src/strategy/minimax.rs
+++ b/src/strategy/minimax.rs
@@ -40,14 +40,14 @@ pub fn choose_move(
}
//eprintln!("Number of simulations: {}", root_node.score_sum.visit_count);
- for (command, score_sum) in &root_node.player_score_sums[0] {
- eprintln!(
- "{} = {} ({} visits)",
- command,
- score_sum.avg().val,
- score_sum.visit_count
- );
- }
+ // for (command, score_sum) in &root_node.player_score_sums[0] {
+ // eprintln!(
+ // "{} = {} ({} visits)",
+ // command,
+ // score_sum.avg().val,
+ // score_sum.visit_count
+ // );
+ // }
let chosen_command = best_player_move(&root_node);