|
@@ -42,13 +42,13 @@ class FourRoomsEnv(MiniGridEnv):
|
|
|
|
|
|
if i + 1 < 2:
|
|
|
self.grid.vert_wall(xR, yT, room_h)
|
|
|
- pos = (xR, self._rand_int(yT + 1, yB - 1))
|
|
|
+ pos = (xR, self._rand_int(yT + 1, yB))
|
|
|
self.grid.set(*pos, None)
|
|
|
|
|
|
|
|
|
if j + 1 < 2:
|
|
|
self.grid.horz_wall(xL, yB, room_w)
|
|
|
- pos = (self._rand_int(xL + 1, xR - 1), yB)
|
|
|
+ pos = (self._rand_int(xL + 1, xR), yB)
|
|
|
self.grid.set(*pos, None)
|
|
|
|
|
|
|