Created
December 8, 2019 08:31
-
-
Save TheBojda/69ecc3f9854f416a8aceec0778947da3 to your computer and use it in GitHub Desktop.
This file contains 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
import gym | |
env = gym.make("Breakout-v0") | |
observation = env.reset() | |
for _ in range(10000): | |
env.render() | |
action = env.action_space.sample() # your agent here (this takes random actions) | |
observation, reward, done, info = env.step(action) | |
if done: | |
observation = env.reset() | |
env.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment