Zekallinos
Sponsor
I need to detect if two coordinates in the map are joined (or two areas, same thing), meaning if there is a possible path from Point A to Point B. Any obstacle (event, impassable tile, etc) can prevent the existence of such a path (if the map is pretty cluttered).
The obvious thing to do first is make a sort of array that contains empty tiles and "walls".
But then what? How would I make a efficient algorithm that knows if there is a possible path (I don't need to find the actual path)?. Brute force is more or less an option. Suggestions or references?
The obvious thing to do first is make a sort of array that contains empty tiles and "walls".
But then what? How would I make a efficient algorithm that knows if there is a possible path (I don't need to find the actual path)?. Brute force is more or less an option. Suggestions or references?