Displaying Colored Mazes

Learn the code to display colored mazes in Ruby.

The ColoredGrid class

Now we can subclass Grid and create a ColoredGrid class, which will implement our Dijkstra-based coloring rules. The code is shown below:

Get hands-on with 1200+ tech skills courses.