Skip to Main Content
Mazes for Programmers
book

Mazes for Programmers

by Jamis Buck
July 2015
Intermediate to advanced content levelIntermediate to advanced
286 pages
6h 31m
English
Pragmatic Bookshelf
Content preview from Mazes for Programmers

Introducing Weaves and Insets

A weave maze is a maze in which passages weave over and under one another, like noodles in a bowl of spaghetti.

images/weave.png
Figure 5. A Weave Maze

We can’t really draw these with our existing to_png method, because our existing method does not draw any space between adjacent corridors. Without that space, there is too much ambiguity—we can’t tell if a passage has dead-ended, or gone underneath another passage. The following figure shows the same maze as the previous figure, but without any gaps between corridors.

images/weave-no-gap.png

Messy! And even ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Exercises for Programmers

Exercises for Programmers

Brian P. Hogan

Publisher Resources

ISBN: 9781680501315Errata Page