robbyRobot/robbyRobot3.js
// neightbours, plus a list of commands to reach this cell from the START cell
neightbours, plus a list of commands to reach this cell from the START cell
neightbours plus a list of commands to reach this cell from the START cell
function Cell(cellRow, cellCol, cellType, cheapestParent) {
      this.cellRow = cellRow
      this.cellCol = cellCol
      this.cellType = cellType
      this.cheapestParent = cheapestParent
      this.neighbours = []
      this.commands = []
      this.h = null
    }
function Cell ( cellRow , cellCol , cellType , cheapestParent ) { this . cellRow = cellRow this . cellCol = cellCol this . cellType = cellType this . cheapestParent = cheapestParent this . neighbours = [ ] this . commands = [ ] this . h = null }
neightbours, plus a list of commands to reach this cell from the START cell
neightbours plus a list of commands to reach this cell from the START cell
// cellType is the cell contents (above) // Parent with the cheapest total cost from Start cell, // and it's direction [ cellId, direction ] ('N', 'E', 'S', 'W') // Array[ [cellId, direction] ] of neighbours found // Array of commands to this cell from the cheapestParent // heuristic result for distance to Target