2048
Slide the tiles; two equal tiles merge into one worth double. Aim for 2048, or just for a bigger score than last time.
Tokens: — Today: — Locked: —
How to play
- Slide every tile at once with the arrow keys or WASD, or swipe on a phone.
- Two equal tiles that meet merge into one, and the new tile’s value is added to your score.
- A new tile appears after every move that changes the board. The game ends when no move is left.
How it's built
There is one slide function, for a single row moving left. The other three directions flip or transpose the grid, slide it left, and flip it back — four directions from one piece of logic.
A merged tile can’t merge again in the same move: the row is walked once, and the walk skips past each merge it makes.
A new tile is a 2 nine times in ten and a 4 otherwise, placed on a random empty cell.
Svelte components · no game engine · How the arcade was built