WeedallAboutIT

Musing on life, IT and programming by Chris Weedall

Creating mazes

My wife creates printable activity sheets for children, and the subject of how to create mazes came up. Hand drawing leaves too many chances for mistakes, so we settled on using a spreadsheet – draw a grid, use the table eraser to make paths:

A maze

Now this works fine, but being a developer I can’t help thinking there must be a way to programmatically generate these based on some parameters. Sure enough, solutions already exist, but this is a puzzle I’d like to solve on my own.

Another maze

Over the next few posts I’m going to record my progress and my various attempts at creating a solution.

C#


© 2009-2024 Chris Weedall