Closed eugenevinitsky closed 5 years ago
self.move_agent('agent-0', [3, 2])
self.move_agent('agent-2', [2, 2])
self.move_agent('agent-1', [2, 3])
self.move_agent('agent-3', [3, 3])
import ipdb; ipdb.set_trace()
self.env.step({'agent-0': ACTION_MAP['MOVE_LEFT'],
'agent-1': ACTION_MAP['MOVE_RIGHT'],
'agent-2': ACTION_MAP['MOVE_RIGHT'],
'agent-3': ACTION_MAP['MOVE_UP']})
causes one of the agents to disappear
If you have a series of players in a square, for example [['P', 'P'], ['P', 'P']] and each of them tries to move in such a way that the square is preserved, one of the agents disappears from the map.