summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/day_22.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/day_22.rs b/src/bin/day_22.rs
index 2ac0d82..f9013cf 100644
--- a/src/bin/day_22.rs
+++ b/src/bin/day_22.rs
@@ -5,7 +5,6 @@ use std::error::Error;
use std::path::PathBuf;
use std::u32;
-use std::cmp;
use std::collections::{HashMap, HashSet};
// cargo watch -cs "cargo run --release --bin day_22"
@@ -106,10 +105,12 @@ fn main() -> Result<(), Box<Error>> {
if current.y+1 >= map_height {
map_height *= 2;
map = build_map(map_width, map_height, depth, target_x, target_y);
+ debug!(map_height);
}
if current.x+1 >= map_width {
map_width *= 2;
map = build_map(map_width, map_height, depth, target_x, target_y);
+ debug!(map_width);
}
for (adjacent, further) in current.adjacent(&map) {