Function aoc::year2022::day22::password

source ยท
fn password(
    input: &Input,
    handle_none: impl Fn(Point, Point) -> (Point, Point),
) -> i32
Expand description

Common code shared between part one and two. The handle_none closure defines how to transition when we leave an edge.