Skip to content

Instantly share code, notes, and snippets.

View hugueslamy's full-sized avatar
😎

Hugues Lamy hugueslamy

😎
  • Montreal, Quebec, Canada
View GitHub Profile
/**
* A* (A-Star) Pathfinding Algorithm in JavaScript
* @author Matthew Trost
* @license Creative Commons Attribution-ShareAlike 3.0 Unported License
* @datepublished December 2010
*/
function astar (map, heuristic, cutCorners) {
var listOpen = [];
var listClosed = [];