Class: MazeDFS

Inherits:
Object
  • Object
show all
Includes:
MazeBase
Defined in:
lib/willb-mazegen/maze.rb

Overview

recursive-backtracking DFS maze generator

Direct Known Subclasses

MazeEasyDFS

Instance Attribute Summary

Attributes included from MazeBase

#cg

Instance Method Summary collapse

Methods included from MazeBase

#closed_sides, #initialize, #size, #walls_for

Instance Method Details

#genObject



69
70
71
72
# File 'lib/willb-mazegen/maze.rb', line 69

def gen
  reset
  gen_from(first_cell)
end