(self)
return self._walls
Calculates a covering of text mazes with overlapping rectangular walls.

    Returns:
      A tuple of `MazeWall` objects, each describing the corners of a wall.
Calculates a covering of text mazes with overlapping rectangular walls.
Calculates a covering of text mazes with overlapping rectangular walls .
def calculate(self):
    """Calculates a covering of text mazes with overlapping rectangular walls.

    Returns:
      A tuple of `MazeWall` objects, each describing the corners of a wall.
    """
    if not self._calculated:
      self._calculated = True
      self._find_next_start()
      walls = []
      while self._next_start.y < self._maze_size.y:
        walls.append(self._find_next_wall())
        self._find_next_start()
      self._walls = tuple(walls)
    return self._walls
def calculate ( self ) : if not self . _calculated : self . _calculated = True self . _find_next_start ( ) walls = [ ] while self . _next_start . y < self . _maze_size . y : walls . append ( self . _find_next_wall ( ) ) self . _find_next_start ( ) self . _walls = tuple ( walls ) return self . _walls