Navigable trait
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
use aoc22::{day22, util};
|
||||
use aoc22::{
|
||||
day22::{self, Navigable},
|
||||
util,
|
||||
};
|
||||
|
||||
pub fn main() {
|
||||
let (grid, instructions) = day22::parse_map_and_path(&util::parse_input());
|
||||
@ -9,7 +12,7 @@ pub fn main() {
|
||||
let mut pose = day22::Pose::new(&grid);
|
||||
// dbg!(&pose);
|
||||
for inst in &instructions {
|
||||
pose = day22::exec_instruction(&grid, &pose, inst);
|
||||
pose = grid.exec_instruction(&pose, inst).0;
|
||||
// dbg!(&pose);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user