def processLayoutText(self, layoutText):
    '\n        Coordinates are flipped from the input format to the (x,y) convention here\n\n        The shape of the maze.  Each character\n        represents a different type of object.\n         % - Wall\n         . - Food\n         o - Capsule\n         G - Ghost\n         P - Pacman\n        Other characters are ignored.\n        '
    maxY = (self.height - 1)
    for y in range(self.height):
        for x in range(self.width):
            layoutChar = layoutText[(maxY - y)][x]
            self.processLayoutChar(x, y, layoutChar)
    self.agentPositions.sort()
    self.agentPositions = [((i == 0), pos) for (i, pos) in self.agentPositions]
Coordinates are flipped from the input format to the (x,y) convention here

The shape of the maze.  Each character
represents a different type of object.
 % - Wall
 . - Food
 o - Capsule
 G - Ghost
 P - Pacman
Other characters are ignored.
def processLayoutText(self, layoutText):
    '\n        Coordinates are flipped from the input format to the (x,y) convention here\n\n        The shape of the maze.  Each character\n        represents a different type of object.\n         % - Wall\n         . - Food\n         o - Capsule\n         G - Ghost\n         P - Pacman\n        Other characters are ignored.\n        '
    maxY = (self.height - 1)
    for y in range(self.height):
        for x in range(self.width):
            layoutChar = layoutText[(maxY - y)][x]
            self.processLayoutChar(x, y, layoutChar)
    self.agentPositions.sort()
    self.agentPositions = [((i == 0), pos) for (i, pos) in self.agentPositions]