SmallReward#
- class curiosity_gym.core.objects.SmallReward(position: tuple[int, int], reward: float)#
Grid object yielding a small reward when the agent moves over it.
- Parameters:
position (tuple[int,int]) – Position in the grid where the object will be placed. Values must be in range (
width- 1,height- 1).reward (float) – Amount of reward to yield when agent walks over the grid object.
Methods
Return a tuple that identifies the grid object and its state in the enviroment.
Interact with agent.
Determine whether grid object is harmful to the agent.
SmallReward grid object is always walkable.
Render grid object in PyGame.
Reset attributes of the grid object to their starting values.
Simulate how grid object would change if a given action were taken.
Determine whether agent is walking over the grid object.
Attributes
id_mapDictionary for all ids and their corresponding subclasses.
identifierUnique id number for each subclass.