robbyRobot/robbyRobot.js
// plus a list of commands to reach this cell from the START cell
plus a list of commands to reach this cell from the START cell
plus a list of commands to reach this cell from the START cell
function Cell(cellType, cheapestParent) {
      this.cellType = cellType
      this.cheapestParent = cheapestParent
      this.neighbours = []
      this.commands = []
    }
function Cell ( cellType , cheapestParent ) { this . cellType = cellType this . cheapestParent = cheapestParent this . neighbours = [ ] this . commands = [ ] }
plus a list of commands to reach this cell from the START cell
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