Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python wrapper of Daedalus monochrome maze

Project description Latest Version

Daedalus source code is copyright (c) 1998-2016 Walter D. Pullen.

Wrapper is copyright (c) 2017 Will Roberts <>.

Licensed under the GNU General Public License version 2.

A Python wrapper of the Daedalus maze generator. This project is currently built against version 3.2 of the Daedalus software.



pip install pydaedalus

Getting started:

>>> from daedalus import Maze
>>> maze = Maze(63, 63)
>>> maze.create_perfect()
>>> maze.resize(31, 61)
>>> maze.create_perfect()
>>> maze.save_bitmap('test.bmp')
>>> maze.save_text('test.txt')

A Maze can be treated as a 2D array of Bools (walls are True and passages are False), or as a container of lists of ints (walls are 1 and passages are 0):

>>> maze.width, maze.height
(31, 61)
>>> maze[0,0]
>>> maze[1,1]
>>> maze[1,2]
>>> maze[1,3]
>>> maze[1]
[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1]
>>> len(maze)

Take a look at demo.ipynb to see visualisations of some of the kinds of Mazes Daedalus can create.


  • Python 2.7, or 3.3+,
  • A C++ compiler with C++11 support (GCC 4.7+, clang 3.3+).

Development Notes

To compile the Cython extension:

python build_ext --inplace

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pydaedalus, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size pydaedalus-0.1.4-cp27-none-macosx_10_11_x86_64.whl (502.8 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pydaedalus-0.1.4-cp34-cp34m-macosx_10_11_x86_64.whl (450.7 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size pydaedalus-0.1.4-cp36-cp36m-macosx_10_11_x86_64.whl (451.4 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pydaedalus-0.1.4.tar.gz (388.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page