15 puzzle solver

Does anyone have Lua code to solve the 8 Puzzle or 15 Puzzle of n width and height? Would really help me out if you do!

Thanks,

Matt

http://codecanyon.net/item/slide-15-puzzle-game-template-for-corona-sdk-with-admob/7728374

Thanks, but does that solution include an auto-solving function?

No, I don’t think it does…

:frowning:

Here is another template by Ed Maurina named “Sliding Puzzle Game Template” -> http://roaminggamer.com/makegames

Maybe you can work something out from that.

What do you mean by auto solve.

The app solves the puzzle without user input - ie moves the tiles per game mechanics to solve the puzzle - so effectively an animation of moves for like @30 seconds ( 1 move = 1 second ).

Or a translate animation to final solution?

T.

By auto solve I mean that the game can solve the puzzle itself.

http://codecanyon.net/item/slide-15-puzzle-game-template-for-corona-sdk-with-admob/7728374

Thanks, but does that solution include an auto-solving function?

No, I don’t think it does…

:frowning:

Here is another template by Ed Maurina named “Sliding Puzzle Game Template” -> http://roaminggamer.com/makegames

Maybe you can work something out from that.

What do you mean by auto solve.

The app solves the puzzle without user input - ie moves the tiles per game mechanics to solve the puzzle - so effectively an animation of moves for like @30 seconds ( 1 move = 1 second ).

Or a translate animation to final solution?

T.

By auto solve I mean that the game can solve the puzzle itself.