Snake Game
Steer the snake with arrow keys or WASD, eat food to grow and avoid your own tail. Optional wall wrapping, three themes and a timed or endless mode.
The interactive tool loads here when JavaScript runs.
About this toolWhat is Snake?
Snake is played on a 20 by 20 grid. The snake starts as a single square in the middle, moving up, and advances one cell every 150 ms. Each piece of food you eat adds 10 points and makes the snake one square longer. Running into a wall or into your own body ends the game.
Turn on Wall Wrapping and the edges stop being deadly: leaving the right side brings you back on the left, which turns the board into a torus and changes the strategy completely. Your own body is still fatal. A timed mode (1, 3, 5 or 10 minutes, with a countdown in the header) or an endless mode is set under Max Time.
Everything runs in your browser. Your high score, theme, wrap setting and time limit are kept in local storage on this device only.
- 20 by 20 board with arrow key and WASD controls
- Optional wall wrapping and 1 to 10 minute time limits
- Classic, Monochrome and Modern themes, plus fullscreen
- High score saved in your browser
- Pause with P, quick restart with Enter twice
Updated
How to use Snake
- Click Start Game (or the play icon in the game header).
- Steer with the arrow keys or W, A, S and D. The snake keeps moving in the last direction you chose.
- Eat the red food to grow and score 10 points. A new piece appears on a random free cell.
- Press P to pause and resume. Press Enter twice quickly to restart.
- Use the Settings card to switch theme (Classic, Monochrome, Modern), set Max Time, or toggle Wall Wrapping. The fullscreen button gives you a larger board.
Background and insight
The idea is older than mobile phones. Gremlin's 1976 arcade game Blockade had two players leaving solid trails and trying to box each other in. Single-player versions followed on home computers, and in 1997 Nokia shipped Snake on the 6110, which put it on hundreds of millions of phones and made it the version most people remember.
Two rules decide how fair a Snake game feels. The first is that the tail leaves its cell on the same tick the head moves, so chasing your own tail around a tight loop is legal. The second is that you cannot reverse onto your own neck. This version judges a new turn against the direction the snake actually moved last, so pressing Up and then Left very quickly while heading right cannot slip a fatal U-turn in between two ticks.
Common use cases
A timed break
Pick a 1 or 3 minute limit and see how much you can eat before the countdown hits zero.
Beating a personal best
The High counter persists in your browser, so you can come back later and try to top it.
Practising planning ahead
Long snakes force you to think several turns ahead so you do not trap yourself in a pocket.
A nostalgic look
The Monochrome theme mimics the grey-green LCD of early mobile phones.
Tips and limitations
- Hug the edges in long sweeps once the snake is long. Zig-zagging through the middle splits the board into pockets you cannot escape.
- Following your own tail is safe because the tail moves out of the way on the same tick. It is the standard way to buy time while you wait for a safe path to the food.
- With wrap on, the shortest path to food may be through a wall. With wrap off, any wall contact ends the game.
- Queue at most one turn per tick. A second turn pressed before the snake moves replaces the first.
- The time limit counts down only while you play. Pausing stops the clock.
Sources and further reading
- History of Nokia part 2: Snake, Microsoft Devices Blog. How Snake shipped on the Nokia 6110 in 1997
- Nokia 6110, Mobile Phone Museum. The phone that introduced Snake
Frequently asked questions
Can the snake pass through walls?
Only when Wall Wrapping is switched on in the Settings card or the gear menu. With wrap on, leaving one edge brings the head back on the opposite edge. With wrap off, which is the default, touching any wall ends the game immediately.
Why did my snake die when I turned quickly?
The most likely cause is that the head turned into a body segment that was beside it, not a reversal. This game refuses a direct 180-degree turn even if you press two keys between ticks, and it lets you move into the cell your tail is leaving. Any other contact with your own body is a collision.
How many points is each food worth in Snake?
Each piece of food is worth 10 points and adds one square to the snake. The score shown under High is the best score saved in this browser. There are no combo or speed bonuses, and the speed stays at one move every 150 ms for the whole game.
How do I pause or restart the Snake game?
Press P or click the pause icon to pause, and press it again to resume. Pressing Enter twice within about half a second starts a new game at any time, which is handy after a crash. The New Game item in the gear menu does the same thing.
Where is my Snake high score stored?
In your browser's local storage under this site, on this device. It never leaves your computer, so it will not follow you to another browser or phone, and clearing site data resets it to zero.
Does Snake work on a phone?
The board displays on phones, but steering needs a keyboard because there are no on-screen arrows or swipe controls. On a tablet with a keyboard attached it plays normally. On a bare touchscreen, try the 2048 game, which has on-screen arrows.
Is there an in-depth guide to Snake?
Yes. “Classic Browser Games: Rules and Strategies That Actually Work” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.