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.

Files for gym-breakout-pygame, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size gym_breakout_pygame-0.1.1.linux-x86_64.tar.gz (22.6 kB) File type Source Python version None Upload date Hashes View
Filename, size gym_breakout_pygame-0.1.1-py2.py3-none-any.whl (13.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page