Solution: Optimizing Aldous-Broder
Understand the solution to the “Optimizing Aldous-Broder” challenge.
We'll cover the following...
We'll cover the following...
Solution
Let's execute the following solution code and see how it works:
Code explanation
Lines 8–25: We define the class method self.on, which takes a grid object as an argument and generates the maze using the modified Aldous-Broder algorithm.
...