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 Game class instead, which will create a maze for you. Just make sure to set the random_maze_algorithm parameter to RandomMazeAlgorithm.HOLES_ON_SIDE when creating the game.

__init__(*args, **kwargs)[source]

Initializes a new instance of the class.

Parameters:
  • *args (object) – Arguments to pass to the parent constructor.

  • **kwargs (object) – Keyword arguments to pass to the parent constructor.