Skip to content

Commit

Permalink
configurable multiroom
Browse files Browse the repository at this point in the history
  • Loading branch information
BartekCupial committed Nov 30, 2024
1 parent a6cfc0e commit f1c9b42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions minigrid/envs/multiroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def __init__(
minNumRooms,
maxNumRooms,
maxRoomSize=10,
width=25,
height=25,
max_steps: int | None = None,
**kwargs,
):
Expand All @@ -91,15 +93,13 @@ def __init__(

mission_space = MissionSpace(mission_func=self._gen_mission)

self.size = 25

if max_steps is None:
max_steps = maxNumRooms * 20

super().__init__(
mission_space=mission_space,
width=self.size,
height=self.size,
width=width,
height=height,
max_steps=max_steps,
**kwargs,
)
Expand Down

0 comments on commit f1c9b42

Please sign in to comment.