O'Reilly logo

Mazes for Programmers by Jamis Buck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a 3D Maze

We’ll draw these mazes as sets of floor plans, with lower floors to the left and higher floors to the right. The up and down passages will be represented by red arrows drawn in the corresponding cells, indicating which of the adjacent floors each passage leads to. For example, a 3×3×3 maze might look something like this:

images/3x3x3.png
Figure 6. A 3×3×3 Maze

Arrows pointing to the right are like stairs leading to the level above them, and arrows pointing to the left are stairs leading down. If we enter the maze in the northwest corner of the bottom level (the one on the far left), we might take two steps east to the northeast corner, take ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required