From 6bc64c0e5ebf448371384a5a0f9121470c26ffdf Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 23 Dec 2018 09:51:27 +0200 Subject: Day 22: Debugs on autoresizing map --- src/bin/day_22.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bin') 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> { 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) { -- cgit v1.2.3