Skip to content

alvinmatias69/maze-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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

About

A simple maze generator written in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages