Path Finding

I offer a fast ,easy path finding process. I think it's quite fast, short way, easy to understand, but I think it still have some bugs. It's not the shortest path in some condition, but the smartest way. It may offer you some ideal to improve your own path finding.

Common use Path Finding

I add some tricks.To 1 direction we just check the 5 green grids, to 2 direction we just check the 3 green grids, and so on...

We save the calculate time of dark green grids .

For short path,I add tree depth value.In these 2 case , it's work properly.

Download Demo with Source:MFCPathFind.zip