If we have the following arrangement of agents, [['P', 'P'], ['P', 'P']]and they are moving in a counterclockwise fashion, an infinite loop is generated. This is because we try to resolve moves by moving through unconflicted agents and letting them move into open cells, but in this case no cells open up.
If we have the following arrangement of agents, [['P', 'P'], ['P', 'P']]and they are moving in a counterclockwise fashion, an infinite loop is generated. This is because we try to resolve moves by moving through unconflicted agents and letting them move into open cells, but in this case no cells open up.