Closed NathanYukai closed 1 year ago
Check boundary correctly, the old code works in this example because there is always a wall around the edge, but if there isn't a wall, the destination_idx can go out of index.
The book part also need update, let me know if you agree with this change and I'm happy to update the book as well.
Check boundary correctly, the old code works in this example because there is always a wall around the edge, but if there isn't a wall, the destination_idx can go out of index.