HolesOnSideRandomMaze¶
This module provides a maze that is created by adding cells from the center of the maze.
It extends RandomMaze to create a specific type of maze with holes distributed on the sides of the maze.
- class HolesOnSideRandomMaze.HolesOnSideRandomMaze(*args, **kwargs)[source]¶
(This class inherits from
RandomMaze).With this maze, holes are distributed on the sides of the maze. The maze is created by adding cells from the center of the maze
You can use this class to create a maze with this algorithm. However, if you just want to play a game, you can use the
Gameclass instead, which will create a maze for you. Just make sure to set therandom_maze_algorithmparameter toRandomMazeAlgorithm.HOLES_ON_SIDEwhen creating the game.