advent_of_code_2024::day_6

Function count_obstructions_causing_loops

source
fn count_obstructions_causing_loops(guard: &Guard, lab: &Lab) -> usize
Expand description

Try adding obstacles to all locations on the guard’s route, and see which ones cause the guard to end up in an infinite loop