Andreas Bresser

Results 100 comments of Andreas Bresser

The difference of that code to this is that Pathfinding.js stores everything in node objects, so it can execute code on the node without calculating a hash to get the...

The node already has a flag called "walkable" so after you instantiated the grid you could get some random cells from there and set walkable to false: ``` var width...

You are doing this at the wrong position. You create a new grid while you already have a grid in the controller.js, I suggest you do that there. Also you...

Yes, the implementation in Pathfinding.js stores which nodes it has seen in the nodes themself, so the grid needs to be cloned before or reset afterwards (see for example the...

Looks good but it depends on what you want to do. Maybe you don't need to copy the grid if you go a path only once or you want to...

yes, it would be possible to rewrite the [getNeighbors](https://github.com/qiao/PathFinding.js/blob/master/src/core/Grid.js#L144)-function for this.

I'd say this is a duplicate of #132. I guess you just downloaded the pathfinding-browser.min.js and/or you run your code in the [visual demo](https://qiao.github.io/PathFinding.js/visual/) . That version of Pathfinding.js is...

I have not used angular in quite some time but I just installed it and tried around a bit. The Pathfinding.js file in the src-folder of the installed package is...

Hi, It is not my demo, I am not the developer of Pathfinding.js, I just used it as basis for my python-pathfinding implementation. For raphael vs. paper, i suggest you...

the y and x values are defined by the position in the 2d-array/matrix and the value at that position defines if it is walkable or not. In JavaScript 0 can...