Skip to content

Crossings

MiniGrid's Crossing environments: SimpleCrossing / LavaCrossing.

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

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

"wall" (SimpleCrossing - rivers merely block movement) or "lava" (LavaCrossing - the river is walkable but stepping in ends the episode via on_lava_fall).

"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.