Solution to Sub-task: Creating MazeSolver
The solution to the Sub-task "Creating MazeSolver" of the project "Maze Solver".
We'll cover the following...
Creating MazeSolver
For this task, create a class MazeSolver
like this.
Press + to interact
index.js
grid.js
const Grid = require('./grid').gridClass;// Create MazeSolver class belowclass MazeSolver extends Grid{constructor(arr){super(arr); // initialize the grid}}var arr = [[0, 1, 1, 1, 0],[0, 1, 1, 1, 0],[0, 1, 1, 1, 0],[0, 1, 1, 1, 0],[0, 1, 1, 1, 0],]var maze = new MazeSolver(arr);maze.printArray();
To ...