def __init__(self, size=10, width=None, height=None, num_balls=[], agents_index=[], balls_index=[], balls_reward=[], zero_sum=False, view_size=7):
    self.num_balls = num_balls
    self.balls_index = balls_index
    self.balls_reward = balls_reward
    self.zero_sum = zero_sum
    self.world = World
    agents = []
    for i in agents_index:
        agents.append(Agent(self.world, i, view_size=view_size))
    super().__init__(grid_size=size, width=width, height=height, max_steps=10000, see_through_walls=False, agents=agents, agent_view_size=view_size)
def __init__(self, size=10, width=None, height=None, num_balls=[], agents_index=[], balls_index=[], balls_reward=[], zero_sum=False, view_size=7):
    self.num_balls = num_balls
    self.balls_index = balls_index
    self.balls_reward = balls_reward
    self.zero_sum = zero_sum
    self.world = World
    agents = []
    for i in agents_index:
        agents.append(Agent(self.world, i, view_size=view_size))
    super().__init__(grid_size=size, width=width, height=height, max_steps=10000, see_through_walls=False, agents=agents, agent_view_size=view_size)