0
import gym

env = gym.make('Pong-v0')
env.reset()
for _ in range(10):
    env.render(mode='rgb_array')
    # I tried env.render(close = True) and env.render(close = False)
    env.step(env.action_space.sample()) # take a random action

# env = gym.wrappers.Monitor(env, 'results/carrace-1', force = True)

I ran this code on my Ubuntu on Windows, and the result only showed like

qrh@qrh:/mnt/d/RL$ python Pong.py
[2017-05-01 16:36:26,621] Making new env: Pong-v0

Nothing else.

0 Answers0