diff --git a/src/day17/mod.rs b/src/day17/mod.rs index f3e7140..0509cbe 100644 --- a/src/day17/mod.rs +++ b/src/day17/mod.rs @@ -8,6 +8,14 @@ pub fn part_one() { let input = setup(); } +fn pathfind(grid: &mut Vec>) -> i32 { +} + +struct Block { + x: usize, + y: usize, +} + fn setup() -> Vec> { let name = "day17"; println!("Executing module '{name}' entrypoint . . . "); @@ -17,4 +25,19 @@ fn setup() -> Vec> { let input = match_inputs(lines, &r"."); convert_num(input) + .iter() + .enumerate() + .map(|(j, v)| { + v.iter() + .enumerate() + .map(|(i, n)| Block { + x: i, + y: j, + c: *n, + d: 0, + h: 0, + }) + .collect() + }) + .collect() }