To play Atari games, any environment can be invoked. The following code refers to the game Space Invaders: 

environment = gym.make('SpaceInvaders-v0')

Once the preceding command has executed, you will see the following screen:

An Atari game can be played in this environment.

Get Python Reinforcement Learning Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.