Package de.tum.cit.fop.maze.Gameplay
Class MazeGenerator
java.lang.Object
de.tum.cit.fop.maze.Gameplay.MazeGenerator
Generates random mazes using depth-first search algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GameFieldgenerateMaze(int width, int height, MazeRunnerGame game) Generates a maze with specified dimensions.
-
Constructor Details
-
MazeGenerator
public MazeGenerator()
-
-
Method Details
-
generateMaze
Generates a maze with specified dimensions.- Parameters:
width- Maze widthheight- Maze heightgame- Game instance for initialization- Returns:
- Generated game field with maze layout
-