Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 982 Bytes

README.md

File metadata and controls

39 lines (34 loc) · 982 Bytes

Maze Generator

A simple maze generator algorithm using backtrack, written in Rust. Generated mazes will be guaranted to have a path from the start (top left) to the exit (bottom right).

Getting Started

This algorithm developed and tested on rust 1.31.1

  1. Install rust on your system.

  2. Clone the repository.

    $ git clone [email protected]:alvinmatias69/maze-generator.git
  3. Build and run the software

    $ cargo build
    $ ./target/debug/maze_generator

    or

    $ cargo run

    or in production mode

    $ cargo build --release
    $ ./target/release/maze_generator
  4. Change maze dimension (Optional)

    Change the maze dimension from main.rs file. Change this line:

    let mut maze: Maze = Maze::init(10);

    to your preferred dimension.

TODO

  • Add file documentation
  • Add WASM support

Matias 2019