Skip to content

Door key

MiniGrid's DoorKey environment - fetch a key to unlock a door to the goal.

See the environment class in this module for the task, layout and reward/termination details.

Bases: Environment

Navix-DoorKey-*. A room split in two by an interior wall with a single locked yellow door; a matching key lies in the first half, the goal in the second. The agent must pick up the key, unlock and open the door, then reach the goal. Default reward/termination (+1 at the goal minus a step cost). The wall column and door row are randomised every reset.

Attributes:

Name Type Description
random_start bool

False puts the player at a fixed corner of the first room; True (the -Random- ids) samples the player and key positions within the first room.