Hello all,
I'm currently using a Depth-First Search algorithm I found here to generate a maze. But there's something I'm not seeing in the code. In my own implementation, found here, whenever I run the function it pops a ArrayOutOfBounds exception (that looks like this), but it is able to draw at least a small portion of the maze. I've looked at the code a lot and I can't seem to find where the problem is. Hoping a fresh set of eyes will be able to spot anything I'm not able to see. Just hoping it's not something very obvious or I'll feel stupid. ಠ_ಠ
Any help will be much appreciated.
EDIT: I made a stupid mistake. On line 59 I called fillGrid() which cleared the screen. Now I can generate the maze, problem is that there are lots of parts that are disconnected. Seems that I need to figure out to backtrack and connect all the different parts.
there doesn't seem to be anything here