def reset(self): """ resets the maze and chooses a random goal (up or down). """ Maze.reset(self) self.goUp = choice([True, False]) self.goUp = True if self.goUp: self.goal = (3, self.length + 1) else: self.goal = (1, self.length + 1)
def reset(self): Maze.reset(self) self.state = array([self.perseus[0] * self.mazeTable.shape[0] + self.perseus[1]])