File Exchange

image thumbnail

Random maze generator

version 1.0.0.0 (210 KB) by Adam Ivansky
A random maze generator implemented in Matlab. Maze is always solvable.

1 Download

Updated 21 Aug 2016

View License

This maze generator generates a maze composed of several component types. The maze is generated by random iterative swapping of interchangeable parts as well as random attachments of new parts. I've also added functions for displaying and/or saving the generated maze as an image. The code is slow however it is meant to be more of one approach to maze generation rather than anything else.
To learn how to use the functions please try running the example_script.m script. of more reading on this go to https://easterneuropeanbarbarian.wordpress.com/2016/01/24/matlab-maze-generator/

Cite As

Adam Ivansky (2021). Random maze generator (https://www.mathworks.com/matlabcentral/fileexchange/58803-random-maze-generator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Adam Ivansky

This vid shows the operation of the algorithm: https://www.youtube.com/watch?v=yfqa5GyO32o

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!