相关内容参看前文:

最新版gym-0.26.2下Atari环境的安装以及环境版本v0,v4,v5的说明

===========================================

gym中Atari游戏共收录62个游戏,具体见:

https://www.gymlibrary.dev/environments/atari/complete_list/

SpaceInvaders游戏为例,我们可以通过该游戏在gym上的主页说明获得该游戏的具体设置:

https://www.gymlibrary.dev/environments/atari/space_invaders/

=====================================================

关于游戏mode的设置,见官网文档:

https://www.gymlibrary.dev/environments/atari/#flavors

关于游戏在不同mode下的difficulties见官方文档:

https://github.com/mgbellemare/Arcade-Learning-Environment/blob/master/docs/games.md

=====================================================

根据gym中Atari游戏的官方文档,给出各游戏在不同模式和困难度下的遍历的代码:

flavors={
"ALE/Adventure-v5":{"modes":[0, 1, 2], "difficulties":list(range(4)), "default_mode":0},
"ALE/AirRaid-v5":{"modes":[1,2,3,4,5,6,7,8], "difficulties":[0], "default_mode":1},
"ALE/Alien-v5":{"modes":[0,1,2,3], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Amidar-v5":{"modes":[0], "difficulties":[0,3], "default_mode":0},
"ALE/Assault-v5":{"modes":[0], "difficulties":[0], "default_mode":0},
"ALE/Asterix-v5":{"modes":[0], "difficulties":[0], "default_mode":0},
"ALE/Asteroids-v5":{"modes":list(range(32))+[128,], "difficulties":[0,3], "default_mode":0},
"ALE/Atlantis-v5":{"modes":[0,1,2,3], "difficulties":[0], "default_mode":0},
"ALE/BankHeist-v5":{"modes":[0, 4, 8, 12, 16, 20, 24, 28], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/BattleZone-v5":{"modes":[1,2,3], "difficulties":[0], "default_mode":1},
"ALE/BeamRider-v5":{"modes":[0,], "difficulties":[0,1], "default_mode":0},
"ALE/Berzerk-v5":{"modes":[1, 2, 3, 4, 5, 6, 7, 8, 9, 16, 17, 18], "difficulties":[0], "default_mode":1},
"ALE/Bowling-v5":{"modes":[0, 2, 4], "difficulties":[0,1], "default_mode":0},
"ALE/Boxing-v5":{"modes":[0,], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Breakout-v5":{"modes":[0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44], "difficulties":[0,1], "default_mode":0},
"ALE/Carnival-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/Centipede-v5":{"modes":[22,86], "difficulties":[0,], "default_mode":22},
"ALE/ChopperCommand-v5":{"modes":[0,2], "difficulties":[0,1], "default_mode":0},
"ALE/CrazyClimber-v5":{"modes":[0,1,2,3], "difficulties":[0,1], "default_mode":0},
"ALE/Defender-v5":{"modes":list(range(1,10))+[16,], "difficulties":[0,1], "default_mode":1},
"ALE/DemonAttack-v5":{"modes":[1, 3, 5, 7], "difficulties":[0,1], "default_mode":1},
"ALE/DoubleDunk-v5":{"modes":list(range(16)), "difficulties":[0], "default_mode":0},
"ALE/ElevatorAction-v5":{"modes":[0], "difficulties":[0,], "default_mode":0},
"ALE/Enduro-v5":{"modes":[0], "difficulties":[0,], "default_mode":0},
"ALE/FishingDerby-v5":{"modes":[0], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Freeway-v5":{"modes":list(range(8)), "difficulties":[0,1], "default_mode":0},
"ALE/Frostbite-v5":{"modes":[0, 2], "difficulties":[0,], "default_mode":0},
"ALE/Gopher-v5":{"modes":[0, 2], "difficulties":[0,1], "default_mode":0},
"ALE/Gravitar-v5":{"modes":[0,1,2,3,4], "difficulties":[0,], "default_mode":0},
"ALE/Hero-v5":{"modes":[0,1,2,3,4], "difficulties":[0,], "default_mode":0},
"ALE/IceHockey-v5":{"modes":[0,2], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Jamesbond-v5":{"modes":[0,1], "difficulties":[0,], "default_mode":0},
"ALE/JourneyEscape-v5":{"modes":[0,], "difficulties":[0,1], "default_mode":0},
"ALE/Kangaroo-v5":{"modes":[0,1], "difficulties":[0,], "default_mode":0},
"ALE/Krull-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/KungFuMaster-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/MontezumaRevenge-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/MsPacman-v5":{"modes":[0,1,2,3], "difficulties":[0,], "default_mode":0},
"ALE/NameThisGame-v5":{"modes":[8,24,40], "difficulties":[0,1], "default_mode":8},
"ALE/Phoenix-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/Pitfall-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/Pong-v5":{"modes":[0,1], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Pooyan-v5":{"modes":[10, 30, 50, 70], "difficulties":[0,], "default_mode":10},
"ALE/PrivateEye-v5":{"modes":[0,1,2,3,4], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Qbert-v5":{"modes":[0,], "difficulties":[0,1], "default_mode":0},
"ALE/Riverraid-v5":{"modes":[0,], "difficulties":[0,1], "default_mode":0},
"ALE/RoadRunner-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/Robotank-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/Seaquest-v5":{"modes":[0,], "difficulties":[0,1], "default_mode":0},
"ALE/Skiing-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/Solaris-v5":{"modes":[0,], "difficulties":[0,], "default_mode":0},
"ALE/SpaceInvaders-v5":{"modes":list(range(16)), "difficulties":[0,1], "default_mode":0},
"ALE/StarGunner-v5":{"modes":[0,1,2,3], "difficulties":[0,], "default_mode":0},
"ALE/Tennis-v5":{"modes":[0,2], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/TimePilot-v5":{"modes":[0,], "difficulties":[0,1,2], "default_mode":0},
"ALE/Tutankham-v5":{"modes":[0, 4, 8, 12], "difficulties":[0,], "default_mode":0},
"ALE/UpNDown-v5":{"modes":[0,], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/Venture-v5":{"modes":[0,], "difficulties":[0,1,2,3], "default_mode":0},
"ALE/VideoPinball-v5":{"modes":[0,2], "difficulties":[0,1], "default_mode":0},
"ALE/WizardOfWor-v5":{"modes":[0,], "difficulties":[0,1], "default_mode":0},
"ALE/YarsRevenge-v5":{"modes":[0, 32, 64, 96], "difficulties":[0,1], "default_mode":0},
"ALE/Zaxxon-v5":{"modes":[0,8,16,24], "difficulties":[0,], "default_mode":0},
} import gym num = 0 for game_name, game_profile in flavors.items():
for mode in game_profile['modes']:
for difficulty in game_profile['difficulties']:
try:
env = gym.make(game_name, mode=mode, difficulty=difficulty)
obs = env.reset()
for i in range(10):
action = env.action_space.sample()
obs, reward, done, _, _ = env.step(action)
env.close()
except Exception as e:
num += 1
print(e, game_name, mode, difficulty)
# print(env) print("error game number: ", num)

运行结果:

================================================

最新版gym-0.26.2中Atari环境下各游戏在不同模式和困难度下的遍历的更多相关文章

  1. Mockito 中文文档 ( 2.0.26 beta )

    Mockito 中文文档 ( 2.0.26 beta ) 由于缺乏校对,难免有谬误之处,如果发现任何语句不通顺.翻译错误,都可以在github中的项目提出issue.谢谢~ Mockito框架官方地址 ...

  2. 2021MySQL 8.0.26安装教程,目前最新版(详细全面)

    MySQL 8 要比 MySQL 5.7 快 2 倍,还带来了大量的改进和更快的性能!所以为什么不用MySQL8呢!下面是MySQL 8.0.26的安装教程. 安装网址: https://dev.my ...

  3. linux驱动程序之电源管理之新版linux系统设备架构中关于电源管理方式的变更

    新版linux系统设备架构中关于电源管理方式的变更 based on linux-2.6.32 一.设备模型各数据结构中电源管理的部分 linux的设备模型通过诸多结构体来联合描述,如struct d ...

  4. iKcamp出品|微信小程序|工具安装+目录说明|基于最新版1.0开发者工具初中级教程分享

    iKcamp官网:http://www.ikcamp.com 访问官网更快阅读全部免费分享课程:<iKcamp出品|全网最新|微信小程序|基于最新版1.0开发者工具之初中级培训教程分享>. ...

  5. 微信小程序教学第二章:小程序中级实战教程之预备篇 - 项目结构设计 |基于最新版1.0开发者工具

    iKcamp官网:http://www.ikcamp.com 访问官网更快阅读全部免费分享课程:<iKcamp出品|全网最新|微信小程序|基于最新版1.0开发者工具之初中级培训教程分享>. ...

  6. 【译】.NET Core 3.0 Preview 3中关于ASP.NET Core的更新内容

      .NET Core 3.0 Preview 3已经推出,它包含了一系列关于ASP.NET Core的新的更新. 下面是该预览版的更新列表: Razor组件改进: 单项目模板 新的Razer扩展 E ...

  7. linux-2.6.26内核中ARM中断实现详解(转)

    转载:http://www.cnblogs.com/leaven/archive/2010/08/06/1794293.html 更多文档参见:http://pan.baidu.com/s/1dDvJ ...

  8. eclipse 编译tomcat8.0.26的源码

    第一次写东西, 如果有不对的地方,请大神指正,我会尽快修正…… 参考:http://www.cnblogs.com/lanxuezaipiao/p/3640923.html 1.从tomcat官网(h ...

  9. Linux 安装 MySQL 8.0.26 超详细图文步骤

    1.MySQL 8.0.26 下载 官方网站下载 MySQL 8.0.26 安装包,下载地址: https://downloads.mysql.com/archives/community/ 需要注意 ...

  10. 技术分享 | 简单测试MySQL 8.0.26 vs GreatSQL 8.0.25的MGR稳定性表现

    欢迎来到 GreatSQL社区分享的MySQL技术文章,如有疑问或想学习的内容,可以在下方评论区留言,看到后会进行解答 GreatSQL社区原创内容未经授权不得随意使用,转载请联系小编并注明来源. M ...

随机推荐

  1. 彻底解决C盘不够用的问题(Windows 10)- 常规方法——清垃圾、转虚拟内存、挪大文件

    1.清垃圾 2.转虚拟内存 3.挪大文件

  2. 向web服务器下载文件

    web服务器向客户端发送文件 Web服务器读取一个文件的二进制数据,把这组二进制数据发送个客户端,服务器发送给客户端的HTML文档的本质也是二进制.客户端使用以下代码读文件 response = ur ...

  3. Masonry在视图相对关系处理中的各种“offset”

    如果我们需要设置一个view在另一个view的右边缘距离一定距离的地方,利用Masonry这么写: [a mas_makeConstraints:^(MASConstraintMaker *make) ...

  4. HDU2062题解 01背包而已

    RT,我就不解释了,题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2602. 初学01背包的人可以做做 #include<iostream> ...

  5. 2020-2021 ICPC, NERC, Northern Eurasia Onsite BEIJ 题解

    B. Button lock 题意:有 \(d\) 个 01 按键以及一个 reset 按键,你需要把所有题目给定的 \(n\) 个密码全部表示一遍.只有按下 reset 按键后才能使所有 01 按键 ...

  6. fseek在 fopen 带有'a'模式下不起作用

    关于 fseek 在 追加写模式的注意事项 结论:fseek在 fopen 带有'a'模式的文件指针偏移不起作用. int main(int argc, char *argv[]) { FILE * ...

  7. 核对不同文件夹所含内容的差异并提取缺失内容:Python代码

      本文介绍基于Python语言,以一个大文件夹作为标准,对另一个大文件夹所包含的子文件夹或文件加以查漏补缺,并将查漏补缺的结果输出的方法.   首先,来明确一下本文所需实现的具体需求.现有一个大文件 ...

  8. FileZilia FATAL ERROR: Network error: Software caused connection abort

    使用FileZilia sftp传文件,对象服务器突然关闭,导致FileZilia传输中断. 等待对象服务器打开后,使用FileZilia想继续传输文件,结果一直显示: FATAL ERROR: Ne ...

  9. JS -- Ajax -- 手稿

  10. MySQL 获取所有表名、所有表结构

    获取所有表名 SELECT A.TABLE_SCHEMA '数据库', A.TABLE_NAME '表名', A.TABLE_ROWS '表记录行数', A.CREATE_TIME '创表时间', A ...