Jump to content

Mahjong pathfind algorithm


Lizard
 Share

Recommended Posts

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 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...