Exemplo n.º 1
0
    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__])
        ]
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
    def __init__(self, **kwargs):
        populate_kwargs(self, self.__class__.__properties, kwargs)

        self.game = None
        self.PRIO = 0
Exemplo n.º 4
0
 def __init__(self, **kwargs):
     populate_kwargs(self, self.__class__.__properties, kwargs)
     super(MultiGoals, self).__init__(**kwargs)
Exemplo n.º 5
0
 def __init__(self, **kwargs):
     populate_kwargs(self, self.__class__.__properties, kwargs)
     super(GotoHidden, self).__init__(**kwargs)
Exemplo n.º 6
0
 def __init__(self, **kwargs):
     populate_kwargs(self, self.__class__.__properties, kwargs)
     super(Exclusion, self).__init__(**kwargs)
Exemplo n.º 7
0
 def __init__(self, **kwargs):
     mazeutils.populate_kwargs(self, self.__class__.__properties, kwargs)
     super(WithWaterBlocksChestsMixin, self).__init__(**kwargs)
Exemplo n.º 8
0
 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)