Skip to content

kooshi/maze-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maze Generator

This maze generator is a rewrite of a college data structures assignment.

The goal is to create a random maze with only one correct path between entrance and exit, utilizing a Disjoint Set.

Build and run

cargo build

run the executable with arguments for width and height

.\target\debug\mazegen.exe --width 20 --height 20
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|_ _ _       _|_   _|  _ _       _   _  |
|  _|  _|_|_  |_  |_ _ _ _| |_|_ _|_| | |
|  _ _|_   _ _|_   _  | |_     _| |     |
|_|  _| |   |_   _|_   _ _ _| |    _|_|_|
|_  |  _| |_|_     _|_ _| |  _|_|_| |_  |
  |   |  _  | | |  _|   |_ _|_ _  |  _ _|
|_  |_| |  _| | |  _|_|_   _| | |_   _  |
|    _ _|_|  _| |_|_ _  | | |  _ _    | |
|_|_  |_   _    |     |   |  _  |_  | | |
|  _ _| | | |_|_|_|_|_  |_|_|   |_ _| |_|
|_    |  _  |_ _ _    |_ _   _|_ _| | | |
|_  |   |_  |_ _ _ _|  _ _ _ _ _| |_  |
|_  | |   |  _ _| |_ _|    _| |  _| | | |
|_  | |_|_| | |_        |_|_ _  |  _|   |
| |_| |_ _ _| |_ _| |_| |_   _ _   _ _|_|
|  _ _| | |  _|  _   _|_| | | |  _ _  | |
| |_  |  _ _|_ _  |_ _|_  | |_ _ _ _|_| |
|_ _   _|_  |_   _|      _| |  _ _ _|  _|
|  _| |_ _   _| | | |_|  _ _|_   _ _ _| |
|_ _ _ _ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _ _|


License

MIT

About

A text based maze generator in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages