示例#1
0
 def create_observables(self) -> List[AgentHandler]:
     # TODO: Parameterize these observations.
     return super().create_observables() + [
         handlers.FlatInventoryObservation([
             'dirt',
             'coal',
             'torch',
             'log',
             'planks',
             'stick',
             'crafting_table',
             'wooden_axe',
             'wooden_pickaxe',
             'stone',
             'cobblestone',
             'furnace',
             'stone_axe',
             'stone_pickaxe',
             'iron_ore',
             'iron_ingot',
             'iron_axe',
             'iron_pickaxe'
         ]),
         handlers.DamageObservation('mainhand'),
         handlers.MaxDamageObservation('mainhand'),
         handlers.TypeObservation('mainhand',
                                  ['none', 'air', 'wooden_axe', 'wooden_pickaxe', 'stone_axe', 'stone_pickaxe',
                                   'iron_axe', 'iron_pickaxe', 'other']),
     ]
示例#2
0
 def create_observables(self) -> List[minerl.herobraine.hero.AgentHandler]:
     return [
         handlers.POVObservation(self.resolution),
         handlers.FlatInventoryObservation(ALL_ITEMS),
         handlers.TypeObservation('mainhand', none + ALL_ITEMS + other),
         handlers.DamageObservation('mainhand'),
         handlers.MaxDamageObservation('mainhand')
     ]
示例#3
0
 def create_observables(self) -> List[Handler]:
     return super().create_observables() + [
         handlers.CompassObservation(angle=True, distance=False),
         handlers.FlatInventoryObservation(['dirt'])
     ]
示例#4
0
 def create_observables(self) -> List[minerl.herobraine.hero.AgentHandler]:
     return super().create_observables() + [
         handlers.CompassObservation(),
         handlers.FlatInventoryObservation(['dirt'])
     ]