User Tag List

Results 1 to 10 of 10

Thread: Puzzle Solver

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Puzzle Solver

    Hi all,
    Is it possible to create a slider puzzle solver program? I need it so that if you put in numbers to the squares then it finds the fastest way to solve the puzzle. It turns:
    145
    237
    68

    into:
    123
    456
    78

    You assign numbers to the squares and it finds the fastest way to put it in order.

    btw this pict. shows a puzzle slider online game. I just want a solver.

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    I guess this would require matrix?

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Location
    Turku, Finland
    Posts
    1,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    It would, a lot.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Germany
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    This reeks of a recursive algorithm. I'm sorry to say, I have no idea what it would have to look like, only that we solved similar puzzles at school and I hated it (I still don't get it).

    Or, and I can't believe I'm saying this, you could use Prolog (the thing that reminded me how much I like Delphi). In fact, I think it might even be easier with Prolog.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    Its not a complex algorithm for 9 squares.
    First get the blank square into a known location.

    Focus on getting 1 into the first square.
    Again focus on getting the blank into a known spot.

    Think in terms of if then statements conditions.

    Then focus on getting the 2nd tile into square two.

    Hint Make up an engine that uses a string of characters for your algoritm.

    You'll find it just a reduction algoritm.

    ie. 4>1,5>4,6>5

    You could even think backwards would make the string shorter.

    1456 for example would be

    So 4 goes to 1 etc


    You create a little database and check the condition of the matrix. You'll soon find a pattern.

    You don't need a algorithm or recursive algorithm to solve a problem sometime an array of predefined solutions works just as well.





  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    Here is something that might be of interest: 15 puzzle

    It turns out that there are a number of algorithms that can be used to solve this type of problem, it is just a matter of finding one and implementing it. So yes, it is possible, however you will have to do some work to figure out how to do it.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    Well... Thanks for your replies! But, how do you use an algorithm in MMFD2?

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    Wait... Do you use a Blowfish Object? If you do ... I might need help doing this...

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    Quote Originally Posted by vortex2
    Here is something that might be of interest: 15 puzzle

    It turns out that there are a number of algorithms that can be used to solve this type of problem, it is just a matter of finding one and implementing it. So yes, it is possible, however you will have to do some work to figure out how to do it.
    There you have your answer, RagingTiger. You will have to find your own way of using the algorithms, probably using a combination of alterable values, counters, fastloops etc, etc...

    Making computer boardgame AI is complex in every programminglanguage, and it's not simpler in MMF2. You would need to think like a programmer in order to archieve it
    Of course it's easier when someone allready made the algorithm, but it's still a challenge getting it to work, and you should know what you're doing

    I can't see what the Blowfish object has to do with this, though...

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Puzzle Solver

    K thanks. Nice signature btw lol.

Similar Threads

  1. Puzzle
    By alhareth in forum Hardware Accelerated Runtime
    Replies: 0
    Last Post: 26th January 2013, 09:33 AM
  2. Bug puzzle
    By pitchoune in forum File Archive
    Replies: 108
    Last Post: 19th March 2011, 01:00 AM
  3. Puzzle?
    By Kazuryo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th July 2010, 12:44 AM
  4. 7 letter Anagram solver Example for Darkwing
    By SEELE in forum File Archive
    Replies: 7
    Last Post: 26th December 2007, 05:54 AM
  5. Scrabble solver
    By Jacob in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th December 2007, 12:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •