javascript-astar icon indicating copy to clipboard operation
javascript-astar copied to clipboard

A* Search / Pathfinding Algorithm in Javascript

Results 35 javascript-astar issues
Sort by recently updated
recently updated
newest added

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.

![capture](https://cloud.githubusercontent.com/assets/1687029/6327279/291be4dc-bb80-11e4-9819-a1d504843ed7.PNG)

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...