Class MyMaze3DGenerator

java.lang.Object
mazealgo.model.algorithms.maze3D.AMaze3DGenerator
mazealgo.model.algorithms.maze3D.MyMaze3DGenerator
All Implemented Interfaces:
IMaze3DGenerator

public class MyMaze3DGenerator extends AMaze3DGenerator
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 Details

    • MyMaze3DGenerator

      public MyMaze3DGenerator()
  • Method Details