Built in a weekend
The original 2048 was hacked together by 19-year-old Gabriele Cirulli in a weekend; he open-sourced it and it hit millions of plays within days.
Tip: You can also use W/A/S/D.
2048 is a minimalist number-puzzle played on a 4×4 grid. You slide all tiles in one direction (↑ ↓ ← →). When two tiles with the same value touch, they merge into one, doubling the number. New tiles (usually a 2, sometimes a 4) appear after each move. The aim is to create a 2048 tile — and see how far you can go.
Learn more on Wikipedia: 2048 – the puzzle game.
Each merge adds to your score the value of the resulting tile. Sequence goes: 2 → 4 → 8 → 16 → 32 → 64 → 128 → 256 → 512 → 1024 → 2048 → 4096 … The board size (4×4) keeps the game tactical; efficient merges matter more than speed.
Yes. It runs entirely in your browser; no gameplay data is uploaded. Best score is stored in localStorage on your device.
Undo reverts the last move only (grid and score). It’s disabled if you haven’t moved yet or already used it.
Commit to a corner, avoid vertical moves that dislodge your top tile, and only break pattern to resolve a blockage.
Merges add the value of the resulting tile to your score. Sequence: 2 → 4 → 8 → 16 → 32 → 64 → 128 → 256 → 512 → 1024 → 2048 → 4096 …
Best score is stored locally on your device (localStorage).
The original 2048 was hacked together by 19-year-old Gabriele Cirulli in a weekend; he open-sourced it and it hit millions of plays within days.
On a 4×4 grid the theoretical max tile is 131,072—you’d need perfect merges with no empty spaces the entire way to reach it.
New tiles are 90% 2s and 10% 4s, so each spawn averages 2.2 points of “mass” creeping onto the board.
Most high-score runs avoid one direction entirely (often “Up”), keeping the biggest tile glued to a corner and shrinking the decision tree.
Within weeks of launch, minimax and expectimax bots were hitting 2048 (and beyond) almost every run—turning the puzzle into an AI playground.