def __init__(self): # initial position always at the left side of the corridor self.initPos = [(2, 1)] # create the maze matrix columns = [[1] * 5] for dummy in range(self.length): columns.append([1, 1, 0, 1, 1]) columns.append([1, 0, 0, 0, 1]) columns.append([1] * 5) self.matrix = array(columns).T Maze.__init__(self, self.matrix, self.initPos)
def __init__(self): Maze.__init__(self, self.matrix, self.goal)