Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/isbadawi/maze-generation

Quick app to visualize maze generation algorithms
https://github.com/isbadawi/maze-generation

Last synced: 22 days ago
JSON representation

Quick app to visualize maze generation algorithms

Awesome Lists containing this project

README

        

This is just a quick python app to visualize maze generation algorithms.

A maze is a grid (width and height are specified on the command line). Each
cell is represented as an (x, y) tuple, where (0, 0) is the top left. This
grid is stored as a graph; if two cells are adjacent in this graph, then
there is no wall between them.

Algorithms can be added by writing functions in maze.generators. An
implementation of an algorithm should yield edges (pairs of (x,y)
coordinates) one-by-one. The function name automatically becomes one of the
allowed choices for the --algorithm command line switch.