from ebermergen.lib import generate_map class Map: def __init__(self, dimensions): self.dimensions = dimensions self.terrain = generate_map(dimensions) def get_positions(self): positions = set() for x in range(self.dimensions[0]): for y in range(self.dimensions[1]): positions.add((x, y)) return positions