Crossings
MiniGrid's Crossing environments: SimpleCrossing / LavaCrossing.
See the environment class in this module for the task, layout and reward/termination details.
Crossings
Bases: Environment
Navix-SimpleCrossing-* / Navix-LavaCrossing-*. A square room
crossed by n_crossings full-width "rivers" of obstacle cells, each
with one gap; the gaps sit on a guaranteed-solvable monotone path
from the top-left (player) to the bottom-right (goal). Same
river-placement as MiniGrid's CrossingEnv.
Attributes:
| Name | Type | Description |
|---|---|---|
n_crossings |
int
|
number of rivers. More rivers -> harder. |
obstacle_type |
str
|
|
obstacle_type = struct.field(pytree_node=False, default='wall')
class-attribute
instance-attribute
"wall" (SimpleCrossing - the obstacle blocks movement, no
termination beyond reaching the goal) or "lava" (LavaCrossing -
the obstacle is walkable but ends the episode via on_lava_fall).
Mirrors MiniGrid's own CrossingEnv(obstacle_type=Wall | Lava)
parametrization - both variants share the exact same river-
placement algorithm (_crossings_obstacle_mask), only how the
obstacle cells are materialized differs.