# Difference between revisions of "Brain Maze"

From Noah.org

Line 3: | Line 3: | ||

[[Category:Python]] | [[Category:Python]] | ||

− | This is a fractal algorithm I created for generating mazes. I think it's pretty neat. I came up with this in the early 90's for a computer science class | + | This is a fractal algorithm I created for generating mazes. I think it's pretty neat. I came up with this in the early 90's for a computer science class. The original was written in C. This version is in Python. |

This generates a random maze with no loops -- a single connected path links all elements of the maze. This maze also has the property that it is space filling. | This generates a random maze with no loops -- a single connected path links all elements of the maze. This maze also has the property that it is space filling. |

## Revision as of 06:54, 7 December 2007

This is a fractal algorithm I created for generating mazes. I think it's pretty neat. I came up with this in the early 90's for a computer science class. The original was written in C. This version is in Python.

This generates a random maze with no loops -- a single connected path links all elements of the maze. This maze also has the property that it is space filling.

You can run the brain maze algorithm by clicking here: brainmaze.py

<include svncat src="file:///home/svn/src/python/brainmaze.py" highlight="python" />