如何使用OpenAI Gym Retro玩Flash游戏?

问题描述

最近我刚刚开始学习强化学习,我看到了一个示例,如下所示:

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()

此示例使用OpenAI的Universe,但是当我在github(https://github.com/openai/universe)上访问Universe时,发现提示

不建议使用此存储库,而应使用Retro(https://github.com/openai/retro)库。详情请参阅我们的Retro Contest(https://blog.openai.com/retro-contest博客文章

我能理解复古是宇宙的新版本吗?

我点击了该网站的链接:https://github.com/openai/retro。我浏览了这个复古网站,发现有些游戏是任天堂和世嘉之类的,但没有Flash游戏。

那么我该如何使用Retro来运行上述Flash游戏演示,或者Retro不支持Flash游戏并且只能使用Universe?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)