Depth-first maze generation in PHP, does anyone have any examples? [closed]
I'm studying the following algorithm:
http://en.wikipedia.org/wiki/Maze_generation_algorithm#Depth-first_search
And would love to see a sample implementation in PHP. I have seen the Python and Javascript implementations, but i'm not able to understand how they treat cells.
I found the following php class:
http://www.bluepearl-skins.com/forums/topic/7288-php-maze-generator-and-solver-using-gd-module/
And a simplified, procedural version:
http://www.emanueleferonato.com/2006/08/20/step-by-step-perfect-maze-generation-with-php/
I hope this helps!
精彩评论