Package mazealgo.model.algorithms.maze3D
Class MyMaze3DGenerator
java.lang.Object
mazealgo.model.algorithms.maze3D.AMaze3DGenerator
mazealgo.model.algorithms.maze3D.MyMaze3DGenerator
- All Implemented Interfaces:
IMaze3DGenerator
Iterative randomized DFS (recursive backtracker) extended to 3D.
Cells live at even (depth, row, column) positions. The cube starts as all
walls; the algorithm walks from cell to cell knocking down the wall between
the current cell and a random unvisited neighbour. Six step directions
(up/down a layer, plus the four 2D directions) instead of the 2D four.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mazealgo.model.algorithms.maze3D.AMaze3DGenerator
measureAlgorithmTimeMillis, sanitize
-
Constructor Details
-
MyMaze3DGenerator
public MyMaze3DGenerator()
-
-
Method Details
-
generate
Description copied from interface:IMaze3DGeneratorGenerates a 3D maze with the given depth, rows and columns.- Specified by:
generatein interfaceIMaze3DGenerator- Specified by:
generatein classAMaze3DGenerator
-