Created
December 21, 2017 12:04
-
-
Save messiest/fc8cf5711ea86ef1e69d22662d391286 to your computer and use it in GitHub Desktop.
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
import gym | |
env = gym.make('SuperMarioBros-1-1-v0') | |
observation = env.reset() | |
done = False | |
t = 0 | |
while not done: | |
action = env.action_space.sample() # choose random action | |
observation, reward, done, info = env.step(action) # feedback from environment | |
t += 1 | |
if not t % 100: | |
print(t, info) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment