Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.09k stars 604 forks source link

Add `max_steps` argument for all environments #265

Closed rodrigodelazcano closed 1 year ago

rodrigodelazcano commented 1 year ago

Description

This PR allows to pass the argument max_steps when initializing any minigrid environment. max_steps indicates the number of environment steps before the episode is truncated.

This PR also fixes issue #264

Type of change

Please delete options that are not relevant.

Screenshots

Please attach before and after screenshots of the change if applicable.

Checklist: