How to Generate Mazes Using Depth-First Algorithm

Faramira SG
1 min readFeb 19, 2020
How to Generate Mazes Using Depth-First Algorithm

In this tutorial, we will learn how to generate mazes using a depth-first algorithm. To do this firstly, I will define the problem, then I will explain the algorithm and finally demonstrate the implementation in Javascript. We will use P5js to demonstrate the working of the maze generation.

Check the tutorial on Faramira

--

--