File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,27 @@ class MultiRoomEnv(MiniGridEnv):
6262
6363 ## Registered Configurations
6464
65- S: size of map SxS.
66- N: number of rooms.
67-
6865 - `MiniGrid-MultiRoom-N2-S4-v0` (two small rooms)
6966 - `MiniGrid-MultiRoom-N4-S5-v0` (four rooms)
7067 - `MiniGrid-MultiRoom-N6-v0` (six rooms)
7168
69+ ## Arguments
70+
71+ * `minNumRooms`: The minimum number of rooms generated
72+ * `maxNumRooms`: The maximum number of rooms generated
73+ * `maxRoomSize=10`: The maximum room size
74+ * `width=25`: The width of the map
75+ * `height=25`: The height of the map
76+ * `max_steps=None`: If none, `maxNumRooms * 20` else the integer passed
7277 """
7378
7479 def __init__ (
7580 self ,
7681 minNumRooms ,
7782 maxNumRooms ,
7883 maxRoomSize = 10 ,
84+ width = 25 ,
85+ height = 25 ,
7986 max_steps : int | None = None ,
8087 ** kwargs ,
8188 ):
@@ -91,15 +98,13 @@ def __init__(
9198
9299 mission_space = MissionSpace (mission_func = self ._gen_mission )
93100
94- self .size = 25
95-
96101 if max_steps is None :
97102 max_steps = maxNumRooms * 20
98103
99104 super ().__init__ (
100105 mission_space = mission_space ,
101- width = self . size ,
102- height = self . size ,
106+ width = width ,
107+ height = height ,
103108 max_steps = max_steps ,
104109 ** kwargs ,
105110 )
You can’t perform that action at this time.
0 commit comments