Skip to main content

Minimal 2048 GUI game in Python for Dev Kid

Project description

2048lite 🎮

2048lite is a lightweight Python package that launches the classic 2048 game directly from a local HTML file or a Pygame interface.

No dependencies beyond pygame, no frameworks, no internet — just install and play.


🚀 Features

  • 🕹️ Play 2048 instantly from Python
  • 💡 HTML version included (offline play)
  • 🎮 Optional Pygame version for retro style
  • 📦 Simple install, simple launcher

📦 Installation

pip install 2048lite

🎮 How to Play

from 2048lite import launch_game

launch_game()  # Launch HTML game in your browser

Optional:

from 2048lite import play_pygame

play_pygame()  # Launch the Pygame version

🧱 Requirements

  • Python >= 3.7
  • Pygame >= 2.1.0 (installed automatically)

📄 License

Released under the MIT License.

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

2048lite-1.0.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

2048lite-1.0.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file 2048lite-1.0.1.tar.gz.

File metadata

  • Download URL: 2048lite-1.0.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for 2048lite-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2b09503a421e18b30152ec2b6bf3628d64eb8b48418a38be685c776e2773ca3f
MD5 1f955d6641c54b2ef9cb9df65538224d
BLAKE2b-256 e5b2b677fbc9fafead0dd4e2010958fca15353e32bc6f38457a6487b4bdac6cb

See more details on using hashes here.

File details

Details for the file 2048lite-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: 2048lite-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for 2048lite-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8cd03084f3dd49eef582f2e74ad36899ebcc57f7e1da7f9bb84155ddd42a736
MD5 3fc9352348354386e4cad72b3dfcce40
BLAKE2b-256 3bb567bdab60db465ba0c0a2f4cf3ada24e1f646e9aaadef403f3969cb18204a

See more details on using hashes here.

Supported by

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