def __set_single_obstacles(self): for i in range(config.single_obstacle_count()): coord = (randint(0, config.grid_height()-1), randint(0, config.grid_width()-1)) self.__set_floor(coord, OccupantType.OBSTACLE)
def single_obstacles(self): for i in range(config.single_obstacle_count()): self.grid[randint(0, config.grid_height()-1)][randint(0, config.grid_width()-1)] = GridCell(OccupantType.OBSTACLE)