You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gymnasium/envs/box2d/lunar_lander.py
+7-7
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
importnumpyasnp
8
8
9
-
importgymnasium
9
+
importgymnasiumasgym
10
10
fromgymnasiumimporterror, spaces
11
11
fromgymnasium.errorimportDependencyNotInstalled
12
12
fromgymnasium.utilsimportEzPickle, colorize
@@ -74,7 +74,7 @@ def EndContact(self, contact):
74
74
self.env.legs[i].ground_contact=False
75
75
76
76
77
-
classLunarLander(gymnasium.Env, EzPickle):
77
+
classLunarLander(gym.Env, EzPickle):
78
78
"""
79
79
### Description
80
80
This environment is a classic rocket trajectory optimization problem.
@@ -141,8 +141,8 @@ class LunarLander(gymnasium.Env, EzPickle):
141
141
To use to the _continuous_ environment, you need to specify the
142
142
`continuous=True` argument like below:
143
143
```python
144
-
import gymnasium
145
-
env = gymnasium.make(
144
+
import gymnasium as gym
145
+
env = gym.make(
146
146
"LunarLander-v2",
147
147
continuous: bool = False,
148
148
gravity: float = -10.0,
@@ -173,7 +173,7 @@ class LunarLander(gymnasium.Env, EzPickle):
173
173
`turbulence_power` dictates the maximum magnitude of rotational wind applied to the craft. The recommended value for `turbulence_power` is between 0.0 and 2.0.
174
174
175
175
### Version History
176
-
- v2: Count energy spent and in v0.24, added turbulance with wind power and turbulence_power parameters
176
+
- v2: Count energy spent and in v0.24, added turbulence with wind power and turbulence_power parameters
177
177
- v1: Legs contact with ground added in state vector; contact with ground
178
178
give +10 reward points, and -10 if then lose contact; reward
0 commit comments