Exploring the open source 2048 game javascript examples

I spent a lot of time over the past few days playing this game called 2048, which is a clone of a game called 1024, which appears to be a clone of the game Threes.

I liked playing this 2048 game. And it took more time and strategy than I expected, but I beat it.

Now I'm seeing new versions pop up, and it's a fun learning exercise to explore the source code of these games.


The 2048 game that stole my free time!

Demo: http://gabrielecirulli.github.io/2048/

Source: https://github.com/gabrielecirulli/2048/

2048 AI

This version implements an AI.

Demo: http://ov3y.github.io/2048-AI/

Source: https://github.com/ov3y/2048-AI

Flappy 2048

The 2048 game board repurposed for a Flappy-like.

Demo: http://hczhcz.github.io/Flappy-2048/

Source: https://github.com/hczhcz/Flappy-2048/


Probably pretty much what you would expect.

Demo: http://doge2048.com/

Source: https://github.com/laferrera/doge2048

Flappy DOGE2048

Also pretty much what you would expect.

Demo: http://www.donaldguy.com/Flappy-Doge2048/

Source: https://github.com/donaldguy/Flappy-Doge2048

Tumblr 2048

Play 2048, with the tiles replaced by gifs from Tumblr. Fun.

Demo: http://kevintcoughlin.com/tumblr-2048/

Source: https://github.com/KevinTCoughlin/tumblr-2048


It's 2048, but also it's Tetris!

Demo: http://prat0318.github.io/2048-tetris/

Source: https://github.com/prat0318/2048-tetris/


Two player 2048!

Demo: http://instapainting.com/2x2048/index.html

Source: Not found on GitHub! But you can view source on the demo.

16384 Hex

I really like this hexagon version of 2048.

Demo: http://rudradevbasak.github.io/16384_hex/

Source: https://github.com/rudradevbasak/16384_hex/

2048 1D

A 1x21 game board. Silly easy.

Demo: http://tiansh.github.io/2048/

Source: https://github.com/tiansh/2048/

2048 3D

A "3d" game board that allows you to push tiles across three quadrants.

Demo: http://joppi.github.io/2048-3D

Source: https://github.com/joppi/2048-3D

2048 4D

This fork breaks the game board into 4 quadrants that you can push tiles between. Very challenging!

Demo: http://huonw.github.io/2048-4D/

Source: https://github.com/huonw/2048-4D

2048 - Multiplayer

A multiplayer version! Fun for spying other people's strategies.

Demo: http://emils.github.io/2048-multiplayer/

Source: https://github.com/emils/2048-multiplayer/

HN Plays 2048

Hundreds of people at once moving tiles around!

Demo: https://hnplays2048.herokuapp.com/

Source: https://github.com/grant/hnplays2048

2048 in 2048 bytes

A super minimal version submitted to js1k.

Demo: http://js1k.com/2014-dragons/demo/1813

Source: http://js1k.com/2014-dragons/details/1813


This one is a simple fork that uses powers of 3 rather than powers of 2. It's very satisfying to see such big numbers.

Demo: http://inky.github.io/177147/

Source: https://github.com/inky/177147

2048 Numberwang

This one just fucks with the numbers being displayed, but you still match the same colored tiles together.

Demo: http://louhuang.com/2048-numberwang/

Source: https://github.com/louh/2048-numberwang

Dropbox 2048

Save your 2048 game scores to Dropbox. Nice example of Dropbox integration.

Demo: https://dropbox2048.site44.com/

Source: https://github.com/leah/2048

2584 Fibonacci

2048 with Fibonaccis numbers.

Demo: http://mike199515.free3v.com/1597/2.htm

Source: Not found on GitHub! But you can view source on the demo.


2048 in a 5 by 5 grid.

Demo: http://2048.kaivoslab.com/

Source: Not found on GitHub! But you can view source on the demo.

There's more.

2048 has been forked over 1500 times, so there's likely other interesting versions of the game!

Seth Vincent

Seth makes weird arcades, writes JavaScript, and builds civic technology.