You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the path is blocked to target there is no path is found.
output: []
Expected Behaviour
Having an option "getAsCloseAsPossible". Which will find to the path to x: 3, y: 1 position.
output: [[1, 0], [2, 0], [3, 0], [3, 1]]
Note:
It is, of course, possible to find an alternative target position manually. But the next available position to the target is the position x: 2, y: 2 which is also not reachable. The complexity of finding the closest available position is lower on finding it in the shortest path algorithm.
The text was updated successfully, but these errors were encountered:
Sample Code
Current Behaviour
Because the path is blocked to target there is no path is found.
output:
[]
Expected Behaviour
Having an option "getAsCloseAsPossible". Which will find to the path to x: 3, y: 1 position.
output:
[[1, 0], [2, 0], [3, 0], [3, 1]]
Note:
It is, of course, possible to find an alternative target position manually. But the next available position to the target is the position x: 2, y: 2 which is also not reachable. The complexity of finding the closest available position is lower on finding it in the shortest path algorithm.
The text was updated successfully, but these errors were encountered: