def load(self, path):
    self.world = []
    with open(path, 'r') as f:
        yml = yaml.load(f)
    self.height = yml['info']['height']
    self.width = yml['info']['width']
    for y in range(0, self.height):
        self.world.append([])
        for x in range(0, self.width):
            self.world[y].append(0)
    row_index = (- 1)
    for row in yml['data']:
        row_index += 1
        col_index = (- 2)
        if ((row_index % 2) == 0):
            col_index += 1
        for col in row:
            col_index += 2
            self.world[row_index][col_index] = col
def load(self, path):
    self.world = []
    with open(path, 'r') as f:
        yml = yaml.load(f)
    self.height = yml['info']['height']
    self.width = yml['info']['width']
    for y in range(0, self.height):
        self.world.append([])
        for x in range(0, self.width):
            self.world[y].append(0)
    row_index = (- 1)
    for row in yml['data']:
        row_index += 1
        col_index = (- 2)
        if ((row_index % 2) == 0):
            col_index += 1
        for col in row:
            col_index += 2
            self.world[row_index][col_index] = col