Pathfinding Problem.

Hi All …

I just want to know in path finding algos we always consider from point A to Point B. Choosing Point A is easy, its our current location. But what if Point B is not a single point ,it can be any point after the boundary. So , my question is how we choose out destination point i.e. Point B. for example , in game like circle the cat.

Then you need a decision-making algorithm instead… e.g. Minimax