this problem was a rollercoaster of dumb edge cases. My solution performed juuuust badly enough (~ 3mins), that when pt 2 didn't finish, I didn't think anything of it, and was WAY more patient than I should have been about a long-running process. (more after the break)
Stupid ways Rey fucked up this pathfinding algorithm:
- forgot to restrict the char from leaving the valley completely to the north, rather than going in
- forgot to restrict the char from walking through/along the walls.
- forgot to restrict the char from leaving the valley from the south, instead of going back in for the bunny-loving snacks!
RUDE.
..but completed.
(https://github.com/nothes/AdventOfCode/blob/main/AoC/AoC/Day%2024/day24.swift)