mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-12-23 07:06:06 +01: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