/maze-generator

An example of a simple maze generator

Primary LanguageJavaScript

Maze Generator

An example of a simple maze generator built with the awesome p5.js library.

Live Demo https://cahilfoley.github.io/maze-generator/

This example uses a depth-first search pattern and implements recursive backtracking for 100% coverage of the grid.

The implementation is written with modern javascript features, if you are confused by the .mjs extension there is an explanation here and some general information on ES modules here.