Guide
2048 and the sliding tile puzzle: rules, strategy and how the page scores them
Two puzzles with the same ingredients, numbers on a square board, and very different feels: one is about merging and planning space, the other about order and patience. This page has both, for a break of a few minutes, with no account and no network.
How 2048 works
The board starts with two tiles, each a 2 or a 4. On your move every tile slides as far as it can in the direction you choose. When two tiles of the same value meet, they merge into one with double the value, and each tile can merge only once per move. Then, if the board changed, a new tile appears in a random empty square: a 2 nine times in ten and a 4 otherwise. The aim is to make a tile with the value 2048, and the game ends when the board is full and no move is possible.
Scores
The score adds the value of every tile created by a merge. Two 2s merging into a 4 score 4; two 128s merging into a 256 score 256. The panel shows the score, the best score and the highest tile. The best score is kept in your browser. You can play on a board from 3 by 3 to 6 by 6; small boards are very hard and a 6 by 6 board is relaxed. When you reach 2048 a message says so and you can keep playing.
Controls
On a keyboard use the arrow keys or W, A, S and D. There are also four arrow buttons under the board, and on a phone or tablet you can swipe, which must be at least about 24 pixels long to count. Undo takes back the last move, with the board and the score before it, once; after it the button is disabled until you move again. New game starts again at the current size.
Strategy for 2048
Keep your biggest tile in a corner and never move it out. Build a chain of decreasing tiles along the edge next to it, so that merging can run along the chain. Use mostly two directions, for example down and left, and use the other two only when you have to. Look at the board before you move rather than pressing keys quickly, and prefer moves that merge several pairs. No strategy wins every game, because the new tiles are random.
The sliding tile puzzle
The sliding puzzle is a grid of numbered tiles with one gap. Slide the tiles into the gap until the numbers are in order, with the gap in the last square. Click a tile in the same row or column as the gap and it slides into the gap, carrying any tiles between it and the gap with it. Choose 3 by 3, 4 by 4 or 5 by 5. The page counts your moves and your time and keeps your fewest moves for each size.
Why every shuffle can be solved
Of all the ways to arrange the tiles of a sliding puzzle, only half can be solved, which is why a naive shuffle can leave an impossible puzzle. This page makes the shuffle by sliding tiles from the solved position, with a few hundred random legal moves that never undo the one before, so that the result is always solvable. The shuffle is long enough that it is unrecognisable, and the puzzle is never already solved.
A worked example
Open the page and press the arrow keys a few times: the board changes, scores appear and new 2 and 4 tiles drop in. Press Undo and the board returns to the move before. Switch to the sliding tiles, which show a 3 by 3 grid with eight numbers and a gap. Click a tile next to the gap and the page reports one move; the tiles stay on the board and the timer starts with the first move.
Limits
There are no animations, no online leaderboards and no saved games: the board is lost when you leave the page, and only the best scores are kept in this browser. The sliding puzzle has no hint or solver.
Related tools
Sudoku Generator prints number puzzles with one solution. Mental Math Trainer practises arithmetic. Memory Grid and N-Back Trainer exercises memory, and Maze Generator prints mazes.
Checked against the current version of the Number Puzzle Trainer on .

