mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-26 05:01:36 +02:00
eight puzzle now available, clones now available
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
from marl_factory_grid.environment.entity.agent import Agent
|
||||
from marl_factory_grid.environment.groups.collection import Collection
|
||||
from marl_factory_grid.environment.rules import SpawnAgents
|
||||
|
||||
|
||||
class Agents(Collection):
|
||||
@ -8,7 +7,7 @@ class Agents(Collection):
|
||||
|
||||
@property
|
||||
def spawn_rule(self):
|
||||
return {SpawnAgents.__name__: {}}
|
||||
return {}
|
||||
|
||||
@property
|
||||
def var_is_blocking_light(self):
|
||||
|
@ -27,7 +27,7 @@ class Entities(Objects):
|
||||
@property
|
||||
def floorlist(self):
|
||||
shuffle(self._floor_positions)
|
||||
return self._floor_positions
|
||||
return [x for x in self._floor_positions]
|
||||
|
||||
def __init__(self, floor_positions):
|
||||
self._floor_positions = floor_positions
|
||||
|
Reference in New Issue
Block a user