Relative Content

Tag Archive for c++depth-first-searchmaze

Why is my DFS maze generation algorithm not working?

I have a DFS maze generation algorithm implementation in c++ that seems to consistently create multiple distinct areas. The maze is represented as a 2d vector of Node objects, which create a connected graph. print_maze prints nodes and their parents, which I have been using for debugging.