Skip to content

Instantly share code, notes, and snippets.

@gwding
Created June 5, 2017 19:01
Show Gist options
  • Save gwding/b52e41bb0febe63336ffa15e5179a8d0 to your computer and use it in GitHub Desktop.
Save gwding/b52e41bb0febe63336ffa15e5179a8d0 to your computer and use it in GitHub Desktop.
quickly show how an openai gym game looks like
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