Snake
Eat the apples, grow the tail, and stay off the walls and off yourself.
Ready. Press an arrow key to start.
Ready
Press an arrow key, swipe the board, or tap a direction below to set off.
Snake head at row 11, column 11, heading right. Length 3, speed level 1 of 10. Apple at row 1, column 1. Board 20 by 20. Game ready.
Arrow keys or W A S D — or swipe the board. Space pauses.
How to play: the snake never stops. It advances one cell at a time in whatever direction it is facing, and all you control is when it turns. Steer with the arrow keys, with W/A/S/D, by swiping across the board, or with the four buttons underneath it. Every apple you eat adds one segment to your tail and 10 points to your score. The run ends the instant the head leaves the 20×20 grid or enters a cell your own body is already in — there are no lives and nothing to shoot.
The turn you cannot make. A snake may never double back into its own neck, so pressing the direction you came from does nothing at all. What is easy to miss is that this also applies to turns you have queued: the game buffers up to two presses so a corner taken quickly is not lost, and each one is judged against the last buffered turn rather than against the direction on screen. Press down and then up while heading right and the second press is discarded, because by the time it would be applied the snake is heading down and up is a reversal. Press up and then left and both are kept — that is a genuine U-turn, spread over two moves.
Chasing your own tail is legal. The tail vacates a cell on the same move the head enters one, so steering into the square your last segment is leaving is a clean pass, not a crash. The exception is the move you eat on: an apple keeps the tail where it is for one tick, and that is exactly the tick on which the same manoeuvre kills you. Long snakes die in that gap more often than they die on walls.
Speed rises with length, in ten steps. You start at speed 1, moving one cell every 150 milliseconds — about 6.7 cells a second, or three seconds to cross the board end to end. Every three apples takes 9 milliseconds off the tick, so speed 2 arrives at 3 apples, speed 5 at 12, and speed 10 at 27 apples and a score of 270. That top speed is 69 milliseconds a cell — 14.5 cells a second, and a board crossing in 1.38 seconds — and the game does not accelerate past it. Everything after apple 27 gets harder purely because the snake is longer, which is the part you can do something about.
Strategy that actually helps. Beginners chase the apple in a straight line and die of a tail they stopped thinking about. Two habits fix most of that. First, keep to the edges and treat the middle as somewhere you pass through rather than live in — a snake coiled around the centre has cut the board in half and has nowhere to put the next twenty segments. Second, before you commit to an apple, look at where your own tail will be by the time you get there, not where it is now: it moves as you do, so a wall of body that looks fatal is often gone by the time you arrive. Strong players effectively follow one long loop around the whole board, collecting apples that happen to fall on it and taking short detours for the ones that do not.
The theoretical ceiling. A perfect game fills all 400 cells. You start with 3 segments, so that is 397 apples and a final score of 3970. Nobody reaches it by playing well; it is reached, if at all, by following a fixed cycle that visits every cell in turn, which is a different activity from playing Snake. A human score in the high hundreds is a very good game on a board this size.
Snake is one of the oldest video games there is — the arcade cabinet Blockade ran the idea in 1976, and Nokia putting it on the 6110 in 1997 made it the first game most of the world carried in a pocket. This version runs entirely in your browser: your best score is kept in local storage on this device, nothing is uploaded, there are no accounts, and it keeps working with the network switched off.
How do you play Snake?
Steer the snake with the arrow keys, W/A/S/D, a swipe across the board, or the four direction buttons under it. It moves on its own and only stops when the run ends. Eat an apple to grow one segment and score 10 points. You lose if the head hits a wall or any part of your own body.
Why did my turn not register?
Three possibilities. You pressed the direction you are already travelling in, or the exact reverse of it — neither is a legal turn. Or you had already pressed twice since the last move: the game buffers two turns and drops anything beyond that, so mashing keys around a corner loses the extra presses rather than storing them up.
Can the snake pass through the walls and come out the other side?
No. The board is fenced on all four sides and touching any of them ends the run. That is the original arcade rule, and it is what makes the corners genuinely dangerous rather than a free change of direction.
Is running into my own tail always fatal?
Not quite. The last segment leaves its cell on the same move the head enters a new one, so following directly behind your own tail is safe. The one time it is not is the move you eat an apple on: growing holds the tail in place for that tick, so the cell you were counting on being empty is still occupied.
How fast does it get?
Speed rises one level every three apples, from 150 milliseconds per cell at speed 1 to 69 milliseconds at speed 10, which is reached after 27 apples. It does not get any faster after that — the difficulty from then on is the length of the snake, not the clock.
What is the highest score possible?
On this 20 by 20 board, 3970. That is every one of the 400 cells filled — 397 apples on top of the 3 segments you start with. It is a real ceiling rather than an approachable target; it needs a route that visits every cell in a repeating cycle.
Does the game pause if I switch tabs?
Yes. Leaving the tab pauses the run, so you never come back to a snake that carried on without you. Press Space, or the Resume button, to pick it up again.
Is my best score saved?
Yes, in this browser only. It goes to local storage on the device you are playing on — there is no account and nothing is sent to a server, so it will not follow you to another browser or another machine, and clearing your site data clears it.
Is the game in progress saved if I reload?
No. Reloading deals a fresh board. Only the best score persists; the snake, the apple and the current score do not.
Does this work offline?
Yes. The game is entirely client-side and the site is a progressive web app, so once the page has loaded once it keeps working with no connection. There are no ads, no analytics and no tracking of any kind.
Related Tools
Updated August 23, 2026