Created
May 9, 2018 15:58
-
-
Save dariocazzani/bffe8b959b90da0dffbb6f28c9466fa8 to your computer and use it in GitHub Desktop.
WorldModels-CarHack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from gym.envs.box2d.car_dynamics import Car | |
| from gym.envs.box2d import CarRacing | |
| [...] | |
| position = np.random.randint(len(env.track)) | |
| env.car = Car(env.world, *env.track[position][1:4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment