Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Gym Breakout environment using Pygame

Project description

gym-breakout-pygame

PyPI PyPI - Python Version PyPI - Downloads CI codecov

Gym Breakout environment using Pygame.

Preliminaries

Install

Install with pip:

pip3 install gym_breakout_pygame

Or, install from source:

git clone https://github.com/whitemech/gym-breakout-pygame.git
cd gym-breakout-pygame
pip install .

Development

  • clone the repo:

      git clone https://github.com/whitemech/gym-breakout-pygame.git
      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
    

Tests

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

Credits

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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page