Gym Breakout environment using Pygame
Project description
gym-breakout-pygame
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gym_breakout_pygame-0.1.1.linux-x86_64.tar.gz
.
File metadata
- Download URL: gym_breakout_pygame-0.1.1.linux-x86_64.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7b5a594a6091b88d6859a4ae05a064d3ca766add88d85d31acb648859e0103 |
|
MD5 | 44d91a4adcdce1ff0e551d6544818376 |
|
BLAKE2b-256 | 2801b668f150b95196253e2aa2376390f942ed56ba397ff59bdd6e0bbed5c772 |
File details
Details for the file gym_breakout_pygame-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: gym_breakout_pygame-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05d64027aef3d8be601973a8421fc6fb71ceb11daa0799757ec53c4451a246f1 |
|
MD5 | edff88398a8656b122c850adc76afc04 |
|
BLAKE2b-256 | 73f623b67b45949cbe5b6dfbe660e0589adb66ab993010f1bdc340a45e1f9756 |