2048 game
A 2048 you actually play: push tiles with the arrow keys (or W A S D / H J K L), merge equal tiles, and watch score, moves, biggest tile and free cells update from the real board. Load a known board to rehearse one move, reproduce a whole game by seed, and undo every step.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
2048 board
Push tiles with the arrow keys or W A S D / H J K L; click the board once to focus it.
- Score
- 0
- Moves
- 0
- Max tile
- 2
- Empty
- 14
↑ ↓ ← → W A S D H J K L
Move log
0 move(s) in total
No move recorded yet
What this tool does
- Play 2048 directly on the page: push tiles with the keyboard, merge equal tiles, score updates live.
- Load a known board and replay one move to check merges and scoring against the original rules.
- Reproduce a game by seed: the starting tiles and every spawned tile follow the same seed.
Example
Input
Load the board "2 2 0 0|0 0 0 0|4 4 0 0|8 0 0 8", switch off "Spawn a new tile after every move", then press ←
Output
Move log Move 1 left: +28, total 28 Board (4×4) 4 0 0 0 0 0 0 0 8 0 0 0 16 0 0 0 Max tile 16 · empty 13
Frequently asked questions
Why does 2 2 2 2 left give 4 4 and not 8?
As in the original rules each pair merges only once per slide, so you get two 4s and 8 points.
Is the spawned tile random?
Its cell and value come from an xorshift128 stream keyed by the seed (10% chance of a 4, otherwise a 2), never Math.random. The same seed reproduces the starting tiles and the whole spawn order; switch the spawn toggle off to test a single move only.
When is the game over?
Only when the board has no empty cell and none of the four directions changes it. An empty board or a board with free cells is never reported as over.
How far back can I undo?
Every move stores a snapshot, so you can walk all the way back to the start; score, move count and the log roll back with it. "Restart this game" replays the same seed and gives the same sequence again.
Which keys are supported?
Arrow keys plus W A S D and H J K L. Click the board once so it owns the keyboard focus, then press a key. Only the four directions count as a move.
Keywords:20482048 game