layout: "contents" title: Design
Structure of the world:
None
Actions in the basic environment:
Default tile/observation encoding:
(OBJECT_IDX, COLOR_IDX, STATE)
OBJECT_TO_IDX
and COLOR_TO_IDX
mapping can be found in minigrid/minigrid.pySTATE
refers to the door state with 0=open, 1=closed and 2=lockedBy default, sparse rewards are given for reaching a green goal tile. A
reward of 1 is given for success, and zero for failure. There is also an
environment-specific time step limit for completing the task.
You can define your own reward function by creating a class derived
from MiniGridEnv
. Extending the environment with new object types or new actions
should be very easy. If you wish to do this, you should take a look at the
minigrid/minigrid.py source file.