0
OpenAI的universe
是真棒庫,由於代碼如何使用其他環境
# coding: utf-8
import gym
import universe # register the universe environments
env = gym.make('flashgames.DuskDrive-v0')
env.configure(remotes=1) # automatically creates a local docker container
observation_n = env.reset()
while True:
action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n] # your agent here
observation_n, reward_n, done_n, info = env.step(action_n)
env.render()
提供了「DuskDrive-V0」的環境,我如何使用其他環境?