javascript-astar
javascript-astar copied to clipboard
A* Search / Pathfinding Algorithm in Javascript
is there a way to pass option which would set a penalty if the path changes directions in order to get a path with fewest turns? (I need to avoid...
I was reusing a graph to find multiple paths and hit the (closed) issue #43, which was fixed by the most recent commits. Those commits didn't make it into an...
経路の斜め移動の重みを等倍に修正。 ESLintによる構文チェック。
Hi, To move character bigger than 1x1 tile, I had to write a clearance detection. The clearance of each Node is stored at the Graph init, and we can use...
This badge will show the version on CDNJS.

currentNode.closed = true and didn't make it dirty so that when a new search begins, the function Graph.cleanDirty() may not reset the closed node, and finally it will result in...
Would help performance to do this as a constant outside the function.
I optimized the Binary Heap in a few ways : • cached the properties that were used several times, content and scoreFunction ( 7.5% faster). • cached scoreElement in sinkDown...
I was playing around with the Web version hosted by the author, and found that every time a new map is generated, the diagonal path check box has to be...