Snake

Eat, grow, don't crash.

Score

0

Best

0

Normal · walls on · ↑↓←→ / WASD, Space pause · swipe or use the arrows

Snake

Choose a speed, then play.

or press an arrow keyor swipe on the board

Your Snake stats

Games
0
Apples eaten
0
Longest snake
0
Best score at each speed, with walls on and off
Best scoreWalls onWalls off
Slow——
Normal——
Fast——
Rising——

Play a game and your recent scores show up here. Everything stays on this device.

Play Snake online, free

Snake is about as simple as an arcade game gets. You steer a line of blocks around a 20×20 board, eat the apple that appears, and grow one segment longer each time. The difficulty builds by itself: every apple leaves less open space, until there's nowhere safe left to turn. One crash into a wall or your own tail and the run is over.

This version plays in any browser on a computer, phone or tablet, with nothing to download and no account. You can pick from four speeds, play with or without walls, pause at any moment, and it keeps a separate best score for every combination, so a record on Fast with walls means something different from one on Slow without them. Your scores and settings stay on your device.

How to play

  1. Pick a speed and choose walls on or off on the start screen. The snake starts in the middle of the board, three segments long.
  2. Press Play, or just press an arrow key or swipe: the snake sets off in that direction, so your first move is never wasted.
  3. Steer toward the red apple. Each one adds a segment and a point, and the next apple appears on a random empty square.
  4. Avoid your own body, and the edges too if walls are on. Running into either ends the game, and the square you hit is marked with a cross.
  5. Check your score against your best for that setting, share it if it's a good one, and press Play again.

Controls

ActionKeyboardPhone or tablet
SteerArrow keys or W A S DSwipe on the board, or the arrow pad
StartAny arrow key, Space or EnterTap the board, swipe, or press Play
Pause / resumeSpace, P or EscThe pause button, then tap the board
Sound on / offMThe speaker button

On a touch screen you can keep your finger on the board and draw your turns: each new direction counts as soon as you've moved about one square's width, without lifting. With a mouse, click and drag across the board the same way. Turns are buffered, so a quick double tap such as up-then-left makes a tight U-turn on two consecutive steps instead of losing the second key.

Speed and wall settings

SpeedPaceGood for
Slowone square every 0.16 s (about 6 a second)learning, phones, planning long routes
Normalevery 0.12 s (about 8 a second)the classic feel
Fastevery 0.08 s (12.5 a second)quick reflexes
Risingstarts at the slow pace, 8% quicker every 5 apples, tops out at 0.06 sa run that gets harder as you go

Walls on is the classic rule set: the edge of the board is solid. Walls off turns the edges into portals, so the snake leaves on one side and comes back on the other, shown by a dashed border. Without walls the only thing that can end a game is your own body, which makes it a good way to practise route planning before you take on the walls.

Scoring and stats

Every apple is worth one point, so your score is simply how many apples you ate, and your snake is always three segments longer than your score. There are no bonuses or multipliers. Best is tracked separately for each of the eight speed-and-wall combinations, and the stats card under the board adds your games played, total apples, longest snake and your last ten scores. The board holds 400 squares, so the maximum score is 397, and filling the board ends the game as a win.

Strategy tips

  • Leave yourself an exit. Before going for an apple, check you'll still have a way out after eating it. Apples tucked against a wall or into a corner are the classic trap for a long snake.
  • Follow your tail when in doubt. The square your tail is leaving is always free on the next step, so trailing right behind it is the safest move on the board and buys time while you wait for a better apple.
  • Keep the open space in one piece. The most common late crash comes from cutting the board in two and being stuck in the smaller half. Don't drive a line of body across the middle when you can go around.
  • Sweep in lanes once you're long. Moving back and forth in tidy rows keeps the body packed together instead of scattered into pockets you can't reach.
  • Turn one step early near walls. At Fast pace a wall arrives in a fraction of a second; commit to the turn a square before you need it, and use the turn buffer for U-turns.
  • Pause instead of panicking. Space or P freezes the board, and play resumes after a 3-2-1 countdown, so you can take a breath and plan.

Common mistakes

  • Pressing the opposite direction to turn around. A straight reversal is ignored; make two quarter-turns instead.
  • Chasing every apple by the shortest path. That works early on, but past 40 or so segments the shortest path is often the one that seals you in.
  • Hugging the middle. Body in the centre splits the board; keep it near the edges and the open space stays connected.
  • Mashing keys after a crash. The game ignores keys for a moment after it ends, so your last frantic press doesn't skip the score screen.

A little background

Games built around a line that grows as it moves date back to the arcades of the mid-1970s, and Gremlin's two-player Blockade (1976) is usually named as the first. The single-player Snake most people remember arrived on Nokia phones in 1997 and turned a small monochrome screen into a pocket arcade. This page is an independent take on that genre, built for today's keyboards and touch screens.

Like quick arcade games? Stack falling blocks in Tetris, keep a ball alive in Breakout, or slide tiles to 2048 when you want something calmer. To see how fast you really react, try the reaction time test.

Frequently Asked Questions

How do you play Snake?

Steer the snake around the board to eat the red apples. Each apple adds one segment to your tail and one point to your score, and a new apple appears on a random empty square. The game ends when the snake runs into a wall (with walls on) or into its own body. Start with Play, any arrow key or a swipe, and pause any time with Space, P or Esc.

Does the snake get faster as it grows?

Only on the Rising setting. Slow, Normal and Fast keep one steady pace for the whole game: about 6, 8 and 12.5 squares a second. Rising starts at the slow pace and gets 8% quicker every 5 apples until it reaches a top speed of about 16.7 squares a second at 60 apples.

Can the snake go through walls?

Yes, if you turn walls off. With walls off, leaving one edge brings the snake back in on the opposite side, so only your own body can end the game. With walls on (the classic rules), touching an edge ends the game straight away. Each setting keeps its own best score.

What is the highest possible score in Snake?

397. The board is 20 squares by 20, which is 400 squares, and the snake starts three segments long, so it can eat 397 apples before it fills the board. Filling it ends the game as a perfect game, since there is nowhere left for an apple to appear.

Can I pause the game?

Yes. Press Space, P or Esc, or use the pause button above the board. The game also pauses itself when you switch tabs or windows, and it counts down 3-2-1 before it moves again, so you never come back to a crash you didn't see.

Why won't my snake turn around when I press the opposite direction?

A snake can't reverse straight into its own neck, so the exact opposite direction is ignored. To turn around, make two quarter-turns, such as up and then left. You can press both quickly: the game remembers up to two turns and applies them on consecutive steps.

How do I play Snake on my phone?

Swipe on the board in the direction you want to go. You don't have to lift your finger between turns: keep it on the board and draw the turns, and each new direction registers as soon as you've moved about one square's width. The arrow pad under the board works too, and it reacts on touch rather than on release. Tap the board to start or resume.

Is my high score saved?

Yes, in your browser's local storage, separately for every speed and wall setting, along with your games played, apples eaten and longest snake. Nothing is sent to a server. The stats card under the board has a Reset button, and clearing this site's data also resets everything.

What is the best strategy for a high score in Snake?

Keep the open space in one connected piece and always leave yourself a way out. Early on, take the shortest safe path to each apple. Once the snake covers a third of the board, sweep in tidy back-and-forth lanes and follow your tail, because your tail is the one square that is guaranteed to free up. Most long games end when the snake cuts the board in two and gets trapped in the smaller half.

Can you finish (beat) Snake?

Yes: fill all 400 squares and the game ends as a perfect game. It takes a careful route, usually a zigzag that visits every square in a fixed loop. Start on Slow with walls off if you want to try; the rules are the same, there's just more time to think and fewer ways to crash.

Who made the original Snake game?

The idea of a line that grows as it moves goes back to arcade games of the mid-1970s, with Gremlin's two-player Blockade (1976) usually named as the first. The single-player version most people remember was programmed by Taneli Armanto for Nokia and came preinstalled on the Nokia 6110 in 1997, which put Snake in millions of pockets. This page is an independent version of the genre.