summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-08-27 22:22:23 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-08-27 22:22:23 +0200
commit17441593bd78a82a18695cd2b1b53465e3c26285 (patch)
tree78131d4670600fcf776d22c8e814bc036c951003 /src
parentdbc008ad4d16072d181e0ac6949fab09a9c05801 (diff)
More plot info for debug
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/strategy/monte_carlo.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1883b8e..de8b120 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,3 @@
-#![warn(clippy)]
-
extern crate serde;
extern crate serde_json;
diff --git a/src/strategy/monte_carlo.rs b/src/strategy/monte_carlo.rs
index 7672dff..b8d89aa 100644
--- a/src/strategy/monte_carlo.rs
+++ b/src/strategy/monte_carlo.rs
@@ -71,7 +71,8 @@ pub fn choose_move(state: &BitwiseGameState, start_time: PreciseTime, max_time:
#[cfg(feature = "debug-decisions")]
fn debug_print_choices<F: FnMut(&CommandScore) -> Option<(Point, i32)>>(label: &str, command_scores: &[CommandScore], extractor: F) {
- println!("{}", label);
+ println!("#+NAME: {}", label);
+ println!("#+PLOT: type:3d with:pm3d");
let relevant_moves: Vec<(Point, i32)> = command_scores.iter()
.filter_map(extractor)
.collect();