If you want just the A* search code (not the demo visualization), use code like this http://gist.github.com/581352 A weight of 0 denotes a wall. A weight cannot be ...