Maze generation: Difference between revisions
Content added Content deleted
m (→{{header|PHP}}) |
|||
Line 4,571: | Line 4,571: | ||
=={{header|PHP}}== |
=={{header|PHP}}== |
||
Code inspired by the D and Python solutions. Could have been done procedurally or fully OO (with cells as class too). A debug flag has been provided to allow following the inner workings. Works on PHP > 5.6. |
Code inspired by the D and Python solutions (with the implementation of backtracking, or sometimes it wouldn't work). Could have been done procedurally or fully OO (with cells as class too). A debug flag has been provided to allow following the inner workings. Works on PHP > 5.6. |
||
<lang php><?php |
<lang php><?php |
||
class Maze |
class Maze |