Function aoc::year2022::day09::apart

source ·
fn apart(a: Point, b: Point) -> bool
Expand description

Two knots are considered “apart” if the they are not diagonally adjacent, that is the absolute distance in either x or y axes is greater than 1.