Cloned Games

Python 2048

HaltedSemi-playableNone

Based on 2048

About

2048 is a single-player sliding tile puzzle game written by Gabriele Cirulli, originally in JavaScript and CSS, released on GitHub as free and open-source software on 9 March 2014 under the MIT License, with iOS and Android versions following in May 2014. Python 2048 (Py2048) is a Python port of 2048 built with Pygame, requiring Python 3.10 or later for its use of match statements; it runs in its own process via Python's multiprocessing so it won't block a host program, and supports an optional endless mode that lets play continue past the 2048 tile, plus a local top-eight score list.

How it differs from the original

Exposes a queue-based control API for driving moves and reading back the board state programmatically, which the original browser game does not offer, and adds an optional endless mode beyond the original's win condition.

Getting started

Install the package with pip, then either launch it through its bundled menu-driven window or drive it programmatically via its Python API; an optional endless mode lets play continue after reaching the 2048 tile.

Known limitations

  • input: Holding down directional keys causes continuous movement; bug currently being fixed.

Additional notes

Known limitation
The author notes a bug where tiles keep moving continuously while a direction key is held down, which is being fixed.
Share:

We’d like to use analytics cookies to understand how visitors use this site. See our Privacy Policy for details. Nothing else is tracked, and the site works the same either way.