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

Out of bounds labeled as walls #184

Closed wbridewell closed 2 years ago

wbridewell commented 2 years ago

For the agent's observations, any cells out of the bounds of the grid are labeled as walls. Since these cells are out of bounds and should be blocked off by walls anyway, it would be helpful in some situations either to label them as "unseen" or to create a new label for "out of bounds."

https://github.com/maximecb/gym-minigrid/blob/29f8a0973549a54282b7f95cdd691a07bf2d218a/gym_minigrid/minigrid.py#L431

maximecb commented 2 years ago

I made that choice because the agent can't walk on the areas that are out of bounds 🤷‍♀️