...

/

Introducing 3D Mazes

Introducing 3D Mazes

Learn about 3D mazes, which are formed by stacking two-dimensional grids.

Defining a 3D maze

So, zero-dimensional cells combine to form one-dimensional rows, and one-dimensional rows stack to form two-dimensional grids. It should follow, then, that two-dimensional grids may be stacked to form three-dimensional grids, which is exactly the case, as the following figure shows.

Press + to interact
Two-dimensional grids stacked to form three-dimensional grids
Two-dimensional grids stacked to form three-dimensional grids

When we think of each of these separate 2D grids as levels within the larger 3D grid, it becomes clear that each cell in such a grid must be addressed by three coordinates: row, column, and level. Three coordinates mean three dimensions.

Viewing levels as a set of floor plans

...