lib/mazes/cartesian/space.rb
# Internal: Inform each Cell of its neighbors in the Space.
Inform each Cell of its neighbors in the Space.
Inform each Cell of its neighbors in the Space .
def init_cells
			each_cell do |c|
				col, row = c.x, c.y
				c.up    = self[col, row - 1]
				c.down  = self[col, row + 1]
				c.left  = self[col - 1, row]
				c.right = self[col + 1, row]
			end
		end
def init_cells each_cell do | c | col , row = c . x , c . y c . up = self [ col , row - 1 ] c . down = self [ col , row + 1 ] c . left = self [ col - 1 , row ] c . right = self [ col + 1 , row ] end end
Internal: Inform each Cell of its neighbors in the Space.
Internal : Inform each Cell of its neighbors in the Space .