开发者

Depth-first maze generation in PHP, does anyone have any examples? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifyi开发者_运维技巧ng this question so that it can be reopened, visit the help center. Closed 11 years ago.

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜