Search code examples
deep-learningartificial-intelligencereinforcement-learningopenai-gym

OpenAI gym: How to get complete list of ATARI environments


I have installed OpenAI gym and the ATARI environments. I know that I can find all the ATARI games in the documentation but is there a way to do this in Python, without printing any other environments (e.g. NOT the classic control environments)


Solution

  • You can achieve this by calling list_games() on atari_py:

    >>> import atari_py as ap
    >>> game_list = ap.list_games()
    >>> print(sorted(game_list))
    <<< ['adventure',
         'air_raid',
         'alien',
         'amidar',
         'assault',
         'asterix',
         'asteroids',
         'atlantis',
         'bank_heist',
         'battle_zone',
         'beam_rider',
         'berzerk',
         'bowling',
         'boxing',
         'breakout',
         'carnival',
         'centipede',
         'chopper_command',
         # ...
         ]