Anonymous user
Maze generation: Difference between revisions
→{{header|PHP}}
Line 4,593:
$this->vertWalls = [];// list of removed vertical walls (|)
$this->isDebug = $debug; // debug flag
// generate the maze:
$this->generate();
}
{
$this->initMaze(); // init the stack and an unvisited grid
Line 4,637 ⟶ 4,639:
* Logs to stdOut if debug flag is enabled
*/
{
if ($this->isDebug) {
|