Displaying a 3D Maze
Learn to display a 3D maze on the console in Ruby.
We'll cover the following...
Introduction
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, represented by the red arrows in the corresponding cells, indicate which of the adjacent floors each passage leads to. For example, a 3x3x3 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 ...
Ask