Function advent_of_code_2022::day_9::update_tail
source · fn update_tail(
(head_x, head_y): (isize, isize),
(tail_x, tail_y): (isize, isize)
) -> (isize, isize)
Expand description
Give a new head position, move the tail so it is still touching