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:
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 ...
Get Mazes for Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.