89netraM MazeGenerator Save

A collection of algorithms for generating mazes

Project README

MazeGenerator

A collection of algorithms for generating mazes, while visualizing them.

Demos

Here is a demonstration of mazes being generated with the various algorithms.

Randomized Depth First Search --dfs

Animated demo of the algorithm
Wikipedia
Code

Random Binary Tree Maze --tree

Animated demo of the algorithm
Wikipedia
Code

Randomized Prim's algorithm --prim

Animated demo of the algorithm
Wikipedia
Code

The Aldous-Broder algorithm --ab

Animated demo of the algorithm
Wikipedia
Code

Recursive Division Method --div

Animated demo of the algorithm
Wikipedia
Code

Wilson's algorithm --wilson

Animated demo of the algorithm
Wikipedia
Code

Usage

USAGE:
    maze_generator [FLAGS] [OPTIONS]

FLAGS:
        --dfs      Use the depth first search algorithm for maze generation [default]
        --tree     Use the binary tree maze algorithm for maze generation
        --prim     Use Prim's algorithm for maze generation
        --ab       Use the Aldous-Broder algorithm for maze generation
        --div      Use the recursive division method for maze generation
        --wilson   Use Wilson's algorithm (loop-erased random walk) for maze generation
    -h, --help     Prints help information

OPTIONS:
        --rows <ROWS>                  Number of rows of the generated map [default: 5]
        --columns <COLUMNS>            Number of columns of the generated map [default: 5]
        --start_row <START_ROW>        The row to start generating from [default: 0]
        --start_column <START_COLUMN>  The column to start generating from [default: 0]
        --delay <DELAY>                The ms delay between steps [default: 50]

Development

This project is developed in Rust and uses Cargo.

During development you will most likely want to use

> cargo run

if you want to send arguments to the program, preface them with an "empty" double dash

> cargo run -- <arguments here>

For publication use

> cargo build --release

the resulting binary will be placed in ./target/release.

Open Source Agenda is not affiliated with "89netraM MazeGenerator" Project. README Source: 89netraM/MazeGenerator
Stars
66
Open Issues
0
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating