Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

ash2048-1.0.0-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page