AI Features

Implementing a Third Dimension

Learn to implement a 3D maze in Ruby.

Introduction

When we first worked on the code behind the grid, we implemented the prepare_grid method using a two-dimensional array. That’s not just coincidence—that’s exactly what determined the geometry of our grid! We’ll add a third dimension to the grid by adding a third dimension to that array.

However, it's not that easy. The good news, though, is ...

Ask