Closed epignatelli closed 2 years ago
Hey Maxime, I just noticed that Grid does not allow for observations of 1 cell. https://github.com/maximecb/gym-minigrid/blob/6116191b15aec9e09e4b48edd16f144e31b412fa/gym_minigrid/minigrid.py#L338-L339
Grid
Given that a 1-cell grid does not make much sense, Grid is also used for defining agent views. Any reason why that is not:
assert width >= 1 assert height >= 1
?
Fair enough, we could change that to 1. Feel free to open a PR.
Hey Maxime, I just noticed that
Grid
does not allow for observations of 1 cell. https://github.com/maximecb/gym-minigrid/blob/6116191b15aec9e09e4b48edd16f144e31b412fa/gym_minigrid/minigrid.py#L338-L339Given that a 1-cell grid does not make much sense,
Grid
is also used for defining agent views. Any reason why that is not:?