UniformHolesRandomMaze

This module provides a maze that is created by removing random cells from a full maze uniformly. It makes sure the maze remains connected.

class UniformHolesRandomMaze(cell_percentage, *args, **kwargs)[source]

(This class inherits from RandomMaze ).

With this maze, holes are uniformly distributed in the maze. The maze is created by removing random cells from a full maze, and making sure the maze remains connected.

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

Initializes a new instance of the class, and generates the maze.

Parameters:
  • cell_percentage (float) – Percentage of cells to be reachable.

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

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