Skip to content

Instantly share code, notes, and snippets.

@samundra
Created July 26, 2013 09:55
Show Gist options
  • Save samundra/6087700 to your computer and use it in GitHub Desktop.
Save samundra/6087700 to your computer and use it in GitHub Desktop.
Requires more precised description, tried to understand it and http://i76.photobucket.com/albums/j5/alexshr/null_zps4bba71f9.jpg is my understanding. I don't know if its correct or not
// @see http://dstromberg.com/2013/07/tutorial-random-maze-generation-algorithm-in-javascript/
var pot = [[currentCell[0]+1, currentCell[1], 2, 0],
[currentCell[0], currentCell[1]+1, 1, 3],
[currentCell[0]-1, currentCell[1], 0, 2],
[currentCell[0], currentCell[1]-1, 3, 1]];
@dstromberg2
Copy link

I have updated the code and the article with a minor change which may help in understanding this more fully. Let me know if that is helpful, or if there is another area of this that you would like some more detail on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment