The action-masking guardrail

Toggle the guardrail and watch what changes.

Guardrail OFF ON
Step: 0 Destructive events: 0
The blue agent wants to reach the green goal. The red cells are destructive. Press Run.