Hello guys,
I want to create game like this. It some kind of mahjong games.
http://www.funnygames.nl/spel/vlindervreugde.html
So the main problem is pathfinding algorithm wich will solve this task. In few words it no matter how long it will be, but it should have not more then 2 turns.
I tryed solve this task with A* algorithm. I add extra weight for cells wich not on the same way as pre previous.
So it solving some cases but when it have solution with long route and 2 turns and short route with 2+ turns it not solving the task.
Also i tryed algorythm Lee it interesting way to solve the task and i believe it possible do it with it, but it too complex to analyse all possible routes.
May be here is exist some easier way?
Best regards