excuse me, I want to make an application 8 puzzle with a algorithm such as the following video
http://www.yourepeat.com/watch/?v=LkRuKHwElbk
is there anything that can teach me?
kazkuzzer007 0
Newbie Poster
Recommended Answers
Jump to PostWell, you need to learn...
1)A* search algorithm
2)JavascriptThat's it. First you need to understand how to do the search to get the result using A* algorithm. Then you write script in Javascript to follow the A* search step-by-step. ;)
Jump to PostTo apply the algorithm to the game, you need to think that a move of each tile is a step in the search tree. You need to keep all step (and arbitrary distance value) you have gone so far in the memory. If the next step is causing a cycle …
Jump to PostHmm... Nope. It is simply a though of how to do it. But for example, if you want to apply A* algorithm to the game, you need to construct a path tree of the game. First, create the stage of the game as a node of the tree. Then move …
All 12 Replies
Taywin 312
Posting Virtuoso
kazkuzzer007 0
Newbie Poster
Taywin 312
Posting Virtuoso
kazkuzzer007 0
Newbie Poster
Taywin 312
Posting Virtuoso
kazkuzzer007 0
Newbie Poster
Taywin 312
Posting Virtuoso
kazkuzzer007 0
Newbie Poster
Taywin 312
Posting Virtuoso
kazkuzzer007 0
Newbie Poster
Taywin 312
Posting Virtuoso
kazkuzzer007 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.