Chapter 2Automating and Displaying Your Mazes

Doodling mazes on paper is fine and all, but if that’s all we had, we’d never get anything done. We’re computer programmers. Let’s do this right.

Let’s have the computer do it for us.

Since grids are the foundation of most of what comes later, we’ll start there, exploring the particular implementation used throughout the book. We’ll see how it works in practice by implementing the Binary Tree and Sidewinder algorithms on top of it, and we’ll work through two different ways to display it: textually (think “ASCII art”), and graphically.

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.