📦 Game 🔨 Svelte 🙎‍♂️ by Madza

2048 is a single-player sliding tile puzzle game initially written by Italian web developer Gabriele Cirulli in 2014.

It's played played on a plain 4×4 grid, with numbered tiles that slide when a player moves them using the four arrow keys. Every turn, a new tile randomly appears in an empty spot on the board.

The objective of the game is to slide numbered tiles on a grid to combine them to create a tile with the number 2048.


  1. Slide tiles on X and Y axis
  2. Sum tile values on collision
  3. Color scheme for specific values
  4. Score keeping
  5. Best score memory
  6. Winner detection
  7. Game over / reset

Tech stack

The project is created using Svelte.

Final notes

The project is under MIT license.

Any feature requests are welcomed on GitHub repo.