...Beauty, cleaning, DIY tips and more - free to join!
   Login   Contact us   Site map   Puzzle Club   Ask a question    Newsletter

How do I write a program to create mazes?


Question asked by: mrquestion

Asked on: 06 Jan 2010

To create mazes you need a program that implements an algorithm.

The algorithm you can either work out for yourself or use one that is described on the internet, there are quite a few websites out there that discuss different maze generation algorithms.

Basically you just need to keep a stack of cells you have visited and then move progressively to cells you can visit until you find an exit or a dead end and then backtrack and go back through the stack each time.

By: knowitall
Replied at: 06 Jan 2010
Rate Answer
Comment or provide your answer to this question
No comments have been added to this question "How do I write a program to create mazes?".
Ask a New Question

Find out more about Games

Games Questions and Answers

Mazes Questions and Answers

Next question: Should a maze only have one route from A to B?


Become a Member! It's Free >>>

Share on Facebook: On Twitter: TwitterTweet this!

Question Keywords

create  mazes  program  

More Questions:

What Is An Extra Region Sudoku?
Are Themed Crossword Puzzles Hard To Create?
How Do I Get Out Of A Maze?
What Is A Cryptic Crossword?
Is Killer Sudoku The Same As Calcudoku?