More plot info for debug
authorJustin Worthe <justin@worthe-it.co.za>
Mon, 27 Aug 2018 20:22:23 +0000 (22:22 +0200)
committerJustin Worthe <justin@worthe-it.co.za>
Mon, 27 Aug 2018 20:22:23 +0000 (22:22 +0200)
src/lib.rs
src/strategy/monte_carlo.rs

index 1883b8e..de8b120 100644 (file)
@@ -1,5 +1,3 @@
-#![warn(clippy)]
-
 extern crate serde;
 extern crate serde_json;
 
index 7672dff..b8d89aa 100644 (file)
@@ -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();