Skip to main content

Gym Breakout environment using Pygame

Project description


PyPI PyPI - Python Version PyPI - Downloads CI codecov

Gym Breakout environment using Pygame.



Install with pip:

pip3 install gym_breakout_pygame

Or, install from source:

git clone
cd gym-breakout-pygame
pip install .


  • clone the repo:

      git clone
      cd gym-breakout-pygame
  • Create/activate the virtual environment:

      pipenv shell --python=python3.7
  • Run a short demo:

      python gym_breakout_pygame --random --record

Check for an .mp4 file in videos/. You should get:

  • Enable fire:

      python gym_breakout_pygame --fire


We use tox for testing:

tox -e py3.x

Replace x depending on the minor version of your Python interpreter. E.g. tox -e py3.7


The code is largely inspired by RLGames

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym_breakout_pygame-0.1.1.linux-x86_64.tar.gz (22.6 kB view hashes)

Uploaded Source

Built Distribution

gym_breakout_pygame-0.1.1-py2.py3-none-any.whl (13.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page