Solution to Sub-task: Creating a maze
Explore how to create a maze by conditionally assigning a grid property in JavaScript. Understand how to copy arrays and generate random maze grids within a constructor, strengthening your skills in array handling and object construction.
We'll cover the following...
We'll cover the following...
Creating a maze
The task is broken into two parts. Copy arr and assign it to grid property. But if arr was undefined, just assign grid to a randomly generated ...