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

https://github.com/8dcc/maze-generator

Generate mazes in PNG format using the depth-first search algorithm
https://github.com/8dcc/maze-generator

Last synced: about 2 months ago
JSON representation

Generate mazes in PNG format using the depth-first search algorithm

Awesome Lists containing this project

README

          

#+TITLE: Maze generator
#+AUTHOR: 8dcc
#+STARTUP: showeverything

Simple C program for generating mazes of variable size using the depth-first
search algorithm. For more information, see [[https://en.wikipedia.org/wiki/Maze_generation_algorithm][Wikipedia]].

* Building

#+begin_src console
$ git clone https://github.com/8dcc/maze-generator
$ cd maze-generator
$ make
...
#+end_src

* Usage

You can change a lot of macros in the code, like cell size, wall width, colors,
entrance and exit positions, vertical and horizontal bias, etc.

#+begin_src console
$ ./maze-generator.out [OUTPUT.png] [WIDTH] [HEIGHT]
Generating 65x50 maze...
Writing 650x500 file...
Done.
#+end_src

* Screenshots

[[file:examples/maze1.png]]

[[file:examples/maze2.png]]