summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-12-23 09:51:27 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-12-23 09:51:27 +0200
commit6bc64c0e5ebf448371384a5a0f9121470c26ffdf (patch)
tree0503d1783d306487c1ba774e3840ee36c4e71069 /src
parentabbe409374fa5f90829494bb5690c7e01756af9f (diff)
Day 22: Debugs on autoresizing map
Diffstat (limited to 'src')
-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) {