Created
June 5, 2017 19:01
-
-
Save gwding/b52e41bb0febe63336ffa15e5179a8d0 to your computer and use it in GitHub Desktop.
quickly show how an openai gym game looks like
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 sys | |
import gym | |
env = gym.make(sys.argv[1]) | |
env.reset() | |
for _ in range(1000): | |
env.render() | |
env.step(env.action_space.sample()) # take a random action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment