diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-08-27 22:22:23 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-08-27 22:22:23 +0200 |
commit | 17441593bd78a82a18695cd2b1b53465e3c26285 (patch) | |
tree | 78131d4670600fcf776d22c8e814bc036c951003 /src/strategy | |
parent | dbc008ad4d16072d181e0ac6949fab09a9c05801 (diff) |
More plot info for debug
Diffstat (limited to 'src/strategy')
-rw-r--r-- | src/strategy/monte_carlo.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |