This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cols = 5; //columns in the grid | |
let rows = 5; //rows in the grid | |
let grid = new Array(cols); //array of all the grid points | |
let openSet = []; //array containing unevaluated grid points | |
let closedSet = []; //array containing completely evaluated grid points | |
let start; //starting grid point | |
let end; // ending grid point (goal) |
OlderNewer