Jump to content

8 Sliding puzzle


Arlefreak
 Share

Recommended Posts

Hi all, today y manage to make my little AI exercise to work, it's a classical path finding exercise using A* to solve, this is my first JS medium/heavy project and it can be improved A LOT mainly because I did the A star thing myself from scratch which was fun but hard.

 

It needs some cool animations and player control improvements but if you run it and open the console you can see all the steps to solve it :) when I'm finished it will be on my website but for the time being here is the source code.

 

If any one could check it out and tel me if something could get improved i will appreciate it a lot I have being studding JS and checking other people code and I think I did good practices but I'm not sure.

 

(I'ts SLOW so if you run it it may look like it will crash but hang on and it will solve the puzzle :), I think this is because my heuristic isn't the best but i will try different one  soon)

 

If someone is interested o could do a tutorial for this :) so let me know.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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