mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-09-15 23:37:14 +02:00
small adjustments and "DestinationReachAny" as replacement for "DestinationDone"
This commit is contained in:
@@ -59,7 +59,7 @@ class SpawnAgents(Rule):
|
||||
while True:
|
||||
try:
|
||||
pos = positions.pop()
|
||||
except IndexError as e:
|
||||
except IndexError:
|
||||
raise ValueError(f'It was not possible to spawn an Agent on the available position: '
|
||||
f'\n{agent_name[agent_name]["positions"].copy()}')
|
||||
if agents.by_pos(pos) and state.check_pos_validity(pos):
|
||||
|
Reference in New Issue
Block a user