Function aoc::year2022::day09::parse

source ยท
pub fn parse(input: &str) -> ([i32; 4], Vec<(Point, i32)>)
Expand description

Converts input lines into a pair of Point and integer amount, to indicate direction and magnitude respectively. Then determines the maximum extent of the head so that we can allocate a two dimensional grid.