mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-21 19:31:34 +02:00
Redone the spawn procedute and destination objects
This commit is contained in:
@ -21,7 +21,7 @@ class AgentSingleZonePlacementBeta(Rule):
|
||||
coordinates = random.choices(self.coordinates, k=len(agents))
|
||||
else:
|
||||
raise ValueError
|
||||
tiles = [state[c.FLOOR].by_pos(pos) for pos in coordinates]
|
||||
tiles = [state[c.FLOORS].by_pos(pos) for pos in coordinates]
|
||||
for agent, tile in zip(agents, tiles):
|
||||
agent.move(tile)
|
||||
|
||||
|
Reference in New Issue
Block a user