Your Turn

By this point, you should have a decent grasp of what algorithms are, and some idea of the role they’re going to play in generating random mazes. You’ve seen them at work with the Binary Tree and Sidewinder algorithms. You’ve worked through a couple of mazes on paper, and you’ve learned a little bit about maze textures and how they relate to algorithm biases.

Not bad!

However, as any good chef will tell you, a recipe—and here let’s say, an algorithm—is only a place to start. Now it’s your turn. Look deeper. Play around with what you’ve learned. If you need some suggestions to get your own idea engine running, take a look at the following experiments.

Binary Tree experiments

You’d expect an algorithm that restricts you to choosing between ...

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.