Skip to main content

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.

Metadata

Release files for 2048lite 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 2048lite 1.0.1
File Size Uploaded
2048lite-1.0.1.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for 2048lite 1.0.1
File Interpreter ABI Platform
2048lite-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.0 kB

Release files / 2048lite-1.0.1.tar.gz

Download URL 2048lite-1.0.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2b09503a421e18b30152ec2b6bf3628d64eb8b48418a38be685c776e2773ca3f
BLAKE2b-256 checksum
How to use checksums
e5b2b677fbc9fafead0dd4e2010958fca15353e32bc6f38457a6487b4bdac6cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / 2048lite-1.0.1-py3-none-any.whl

Download URL 2048lite-1.0.1-py3-none-any.whl
Size 1.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8cd03084f3dd49eef582f2e74ad36899ebcc57f7e1da7f9bb84155ddd42a736
BLAKE2b-256 checksum
How to use checksums
3bb567bdab60db465ba0c0a2f4cf3ada24e1f646e9aaadef403f3969cb18204a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page