A gym environment for playing 2048.
Project description
ash2048
Implementation of the 2048 Game for Gym Environments with state rendering through PyGame.
Usage and Notes:
The package follows gymnasium conventions.
To render the board while playing, set display=True
in the constructor.
To save the render to a gif, set save_animation=True
in the constructor.
To save the generated animation to a file, call save_render(filename)
where the filaname is the outfile gif file.
The animation is reset upon calling reset()
.
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
ash2048-1.0.0.tar.gz
(1.2 MB
view details)
Built Distribution
File details
Details for the file ash2048-1.0.0.tar.gz
.
File metadata
- Download URL: ash2048-1.0.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3772d3e2f37ad8fc4aac8efd6e57d09fc8df24ae1bd9f57a136d5887894a8e8a |
|
MD5 | cc00204d7b0ea6e01c452758835a1185 |
|
BLAKE2b-256 | fe731af042ee9c60bdd14d4c9e9371afdfd0c79a7ab7c10bea3d3d534313c1a6 |
File details
Details for the file ash2048-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ash2048-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dea6b9dbd048c62c20e6d8c817b33a65949b775bb4953793c371fa1e8014ddf9 |
|
MD5 | d9807968f1a261805da7a47f5e43c203 |
|
BLAKE2b-256 | 00c51e5e1c706374cf408b1f94695a45cce8473b9045c9ee8b3c3b42f8ada968 |