def __init__(self, **kwargs): mazeutils.populate_kwargs(self, self.__class__.__properties, kwargs) super(Agent, self).__init__(**kwargs) self.actions = {'pass': self._pass} self.PRIO = 100 self._all_agents = [ x[1] for x in mazeutils.all_classes_of(sys.modules[__name__]) ]
def __init__(self, **kwargs): ''' kwargs: featurizer: featurizer to use when doing observe() map_size: (x_min, x_max, y_min, y_max), draw uniformly and randomly ''' mazeutils.populate_kwargs(self, self.__class__.__properties, kwargs) super(BaseMazeGame, self).__init__() self.game_name = uuid.uuid4().hex self.__all_possible_features = None self.__reward = 0 self.reset()
def __init__(self, **kwargs): populate_kwargs(self, self.__class__.__properties, kwargs) self.game = None self.PRIO = 0
def __init__(self, **kwargs): populate_kwargs(self, self.__class__.__properties, kwargs) super(MultiGoals, self).__init__(**kwargs)
def __init__(self, **kwargs): populate_kwargs(self, self.__class__.__properties, kwargs) super(GotoHidden, self).__init__(**kwargs)
def __init__(self, **kwargs): populate_kwargs(self, self.__class__.__properties, kwargs) super(Exclusion, self).__init__(**kwargs)
def __init__(self, **kwargs): mazeutils.populate_kwargs(self, self.__class__.__properties, kwargs) super(WithWaterBlocksChestsMixin, self).__init__(**kwargs)
def __init__(self, **kwargs): mazeutils.populate_kwargs(self, self.__class__.__properties, kwargs) super(RewardOnEndMixin, self).__init__(**kwargs)
def __init__(self, **kwargs): populate_kwargs(self, self.__class__.__properties, kwargs) super(LightKey, self).__init__(**kwargs)