Add start and end points to a maze

by justinhurst   Last Updated May 15, 2019 21:13 PM

I found some code that creates mazes using the growing tree algorithm. It can be found here :

Here is a link to a codepen that has the code running :

I have a very basic understanding of how it works, but hey I end up with a generated maze.

Now I am trying to figure out how to add a maze entry point, and a maze end point. Looking at the code base I cannot think of a way to reliably determine this every time a maze is generated. I'm hoping I am overlooking something here, but I am stuck.

Any tips or guidance would be greatly appreciated.

Tags : javascript maze

Related Questions

Updated October 06, 2017 18:13 PM

Updated May 01, 2018 19:13 PM

Updated May 22, 2018 16:13 PM

Updated January 13, 2019 03:13 AM

Updated March 18, 2016 08:05 AM