Search for a tool
Maze Generator

Tool to automatically generate rectangular (perfect) mazes in 2D. Maze generator based on given height and width, ready to be printed.

Results

Maze Generator -

Tag(s) : Fun/Miscellaneous

dCode and you

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!
You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Maze Generator tool. Thank you.

Maze Generator

Maze Generation

Tool to automatically generate rectangular (perfect) mazes in 2D. Maze generator based on given height and width, ready to be printed.

What is a perfect maze?

A perfect labyrinth is a geometric figure in two parts. Thus, it does not include an inner loop, that is to say that each wall is connected to all the others in its part. This kind of labyrinth is represented by a graph.

Example: Perfect maze with the + part and the * part: // 5x5 +++++++++++++ + + +**** + * + +* * * +* ******* ++++* + +**** **** + +* * +* * **** * +* * * * *************

Example: Imperfect maze, with a central island o: // 5x5 +++++++++++++ + + +**** + o + +* * o +* * oooo ++++* o o + +**** o o + +* o o +* * oooo * +* * * *************

In imperfect labyrinths, some cells are inaccessible.

How to get out of a maze?

To get out of a perfect giant labyrinth, select a wall and follow it until finding the exit. Indeed, in this way, keeping the same wall always left or right, the player will walk a whole side of the labyrinth until finding the exit.

This method works only in perfect labyrinths games, in an imperfect maze, along an island leads the player to turn in circles.

What are the most known mazes?

Among the mazes of plant type, are in France the Labyrinthe de Beaugency or in Belgium the Labyrinthe de Barvaux.

In the cathedrals of Reims and Amiens are drawn on the ground labyrinths.

Maze/Labyrinth is also the name given to a series of films, novels or a board game.

Source code

dCode retains ownership of the source code of the script Maze Generator online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online Maze Generator script for offline use on PC, iPhone or Android, ask for price quote on contact page !