diff --git a/multiagent/scenarios/simple_world_comm.py b/multiagent/scenarios/simple_world_comm.py index 499456e40..6aa388e73 100644 --- a/multiagent/scenarios/simple_world_comm.py +++ b/multiagent/scenarios/simple_world_comm.py @@ -178,7 +178,7 @@ def bound(x): for food in world.food: if self.is_collision(agent, food): rew += 2 - rew += 0.05 * min([np.sqrt(np.sum(np.square(food.state.p_pos - agent.state.p_pos))) for food in world.food]) + rew -= 0.05 * min([np.sqrt(np.sum(np.square(food.state.p_pos - agent.state.p_pos))) for food in world.food]) return rew