Cloned Games

2048-rust

HaltedPlayableLinux

Based on 2048

2048 (original game, not this project)Original game image
Image of the original game, 2048. This project has no screenshots of its own yet.
Links, repository & details

About

2048 is a single-player sliding tile puzzle game written by Gabriele Cirulli and released in 2014, where the player slides numbered tiles on a grid to combine them into a tile numbered 2048. 2048-rust (published as the 'tfe' Rust crate) implements 2048's core game logic for speed rather than as a playable interface: the board is packed into a single 64-bit integer and moves are resolved via a pre-computed lookup table. The author reports it can simulate around 10 million randomly-played games in about 80 seconds across 8 threads.

How it differs from the original

Unlike a typical playable clone, it has no built-in interactive display — games are driven by a Rust closure that picks each move, making it a base for testing move-selection algorithms rather than a game played directly by hand.

Getting started

It's used as a library: add the 'tfe' crate as a dependency, then drive games programmatically through its 'Game::play' method, which repeatedly calls a supplied closure to choose the next move.

Credits & contributing

  • The author credits large parts of the board representation and algorithm to nneonneo's C++ 2048-ai project.
Share:

More like 2048-rust

Active
Ebitengine screenshot
Ebitengine is an open-source, cross-platform 2D game engine for Go, with simple APIs for graphics, input, and audio across many platforms.
Platforms:Web
Stars13,485
Updated1 month ago
LicenseApache-2.0
Release2013
Halted
2048 screenshot
The official open-source 2048 repository: the original browser-playable JavaScript and CSS implementation, also on iOS and Android.
Platforms:WebAndroidiOS
Stars13,411
Updated2 years ago
LicenseMIT
Release2014
Halted
2048.cpp screenshot
A terminal reimplementation of 2048 in C++11 with vim-style controls, save/resume, and score tracking, buildable via CMake or Meson.
Platforms:LinuxOSX
Stars2,247
Updated2 years ago
LicenseMIT
Release2018
Halted
bash2048 screenshot
bash2048 is a deprecated, unmaintained Bash shell-script implementation of 2048, controlled with the arrow keys.
Platforms:Linux
Stars910
Updated2 years ago
LicenseUnlicense
Release2014
Sporadic
2048.c screenshot
A console implementation of 2048 written in C for GNU/Linux, also tested on FreeBSD and OpenBSD.
Platforms:Linux
Stars670
Updated7 months ago
LicenseMIT
Release2014
Archived
2048-python screenshot
2048-python is an archived, read-only Python remake of 2048 built with the Tkinter GUI toolkit.
Platforms:None
Stars358
Updated5 years ago
LicenseMIT
Release2014