Snake-Gym
Contains a gym environment for the classic game snake.
Implementing
env.render()is not implemented, running it will raiseNotImplementedError.env.reset()opens the GUI for the game.env.fpscontains the fps to run the game at. You can set it using:env.fps = 60
Installation
For the latest installation, run
git clone https://github.com/vivek3141/snake-ai
pip install -e .
You can install the latest release by
pip install snake-gym
Creating The Environment
The environment can be created by doing the following:
import gym
import snake_gym
env = gym.make("snake-v0")
Environments
snake-v0Returns a 150x150 RGB image in the form of a numpy array for the observationssnake-tiled-v0Returns a 10x10 matrix for the observations.0is empty space1is the snake2is the food
Metadata
Release files for snake-gym 1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snake_gym-1.8-py3-none-any.whl | Python 3 | none | any | Details for snake_gym-1.8-py3-none-any.whl |
Release files / snake_gym-1.8-py3-none-any.whl
| Download URL | snake_gym-1.8-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
614bfc27ded8f108de9f132c30cd4163f2c876687742de9080879fb644ae4ca0
|
|
BLAKE2b-256 checksum How to use checksums |
60d7c5759d85f693312ce93a503ce77d73ac4e7dd2d828c24160a0703b88bfb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.7.5
|
Security for snake-gym 1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.