相关内容参看前文:

最新版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. 在线IP归属地查询工具

    在线IP地址归属地查询工具,通过该工具可以查询指定IP的物理地址或域名服务器的IP和物理地址,及所在国家或城市IP归属地,数据为纯真IP. 在线IP归属地查询工具

  2. Python_18 unittest和随机数

  3. hypernetwork在SD中是怎么工作的

    大家在stable diffusion webUI中可能看到过hypernetwork这个词,那么hypernetwork到底是做什么用的呢? 简单点说,hypernetwork模型是用于修改样式的小 ...

  4. OPC 数据采集 解决方案

    笔者计划从此篇博客开始,详细介绍OPC数据采集采集过程.包括常用组态软件介绍,数据接入,OPC接入过程,常用OPC数据接入与处理全流程范例,分享相关案例Demo. 因为分享的都是个人实际工作经验中的 ...

  5. Mybatis 插入后获取主键

    项目结构 数据表结构 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmln ...

  6. 洛谷P3009

    #include<iostream> #include<utility> using namespace std; typedef long long ll; #define ...

  7. Solo开发者社区-重新思考云原生应用的开发模式

    当前云原生应用的开发模式在 FaaS 环境下存在挑战,本文提出一种开发模式构想:"单体式编程,编译时拆分,分布式执行",旨在简化云应用开发,提升开发效率和应用性能.思路是通过编译器 ...

  8. [oeasy]python0139_尝试捕获异常_ try_except_traceback

                                                          - 不但要有自己的报错 - 还要保留系统的报错 - 有可能吗? ​ ### 保留报错 ​ ! ...

  9. Odoo 美化登录界面

    实践环境 Odoo 14.0-20221212 (Community Edition) Odoo Web Login Screen 14.0 https://apps.odoo.com/apps/mo ...

  10. DASCTF 2023 & 0X401七月暑期挑战赛【PWN】(FileEditor篇)

    DASCTF 2023 & 0X401七月暑期挑战赛[PWN](FileEditor篇) 题目保护情况(保护全家桶) 64位ida逆向 模拟了一个类似vim的功能,有打开文件,打印内容,插入行 ...