I think basically the solution to that sort of thi...
# advent-of-code
d
I think basically the solution to that sort of thing is just to do a breadth first search after implementing the constraints? Assuming that the state isn’t so complex that the memory or time requirements become unreasonable for an exhaustive search.