diff --git a/gym/envs/classic_control/continuous_mountain_car.py b/gym/envs/classic_control/continuous_mountain_car.py index 5abf77e314e..2f12f936752 100644 --- a/gym/envs/classic_control/continuous_mountain_car.py +++ b/gym/envs/classic_control/continuous_mountain_car.py @@ -184,9 +184,7 @@ def reset( super().reset(seed=seed) # Note that if you use custom reset bounds, it may lead to out-of-bound # state/observations. - low, high = utils.maybe_parse_reset_bounds( - options, -0.6, 0.4 # default low - ) # default high + low, high = utils.maybe_parse_reset_bounds(options, -0.6, -0.4) self.state = np.array([self.np_random.uniform(low=low, high=high), 0]) self.renderer.reset() self.renderer.render_step() diff --git a/gym/envs/classic_control/mountain_car.py b/gym/envs/classic_control/mountain_car.py index 640186db7fb..f5d3e22fe83 100644 --- a/gym/envs/classic_control/mountain_car.py +++ b/gym/envs/classic_control/mountain_car.py @@ -158,9 +158,7 @@ def reset( super().reset(seed=seed) # Note that if you use custom reset bounds, it may lead to out-of-bound # state/observations. - low, high = utils.maybe_parse_reset_bounds( - options, -0.6, 0.4 # default low - ) # default high + low, high = utils.maybe_parse_reset_bounds(options, -0.6, -0.4) self.state = np.array([self.np_random.uniform(low=low, high=high), 0]) self.renderer.reset() self.renderer.render_step()