How to play Snake

Snake is a free arcade game by Extensive Harmony that you play in your web browser. Eat, grow, avoid the walls and your own tail. It works on desktop and mobile — no download, no sign-up.

Goal

Eat food to grow longer. Don't hit the walls or your own tail.

Controls

  • Arrow keys / Swipe / D-pad – Change direction

Tips

Plan ahead — you cannot reverse direction.

How a game of Snake goes

The board is a 20 × 20 grid. The snake starts three segments long in the middle of the board, facing right, and waits for your first move, so you can start when you're ready. Every piece of food adds one segment and one point. A new piece appears at once in a random free cell.

The game has three phases. At the start the snake moves one step every 150 milliseconds (about seven steps a second) and is short, so mistakes are rare. From around 20 points the body starts to take up real space and the speed has dropped to about 110 ms per step. After 45 pieces the snake reaches its top speed of 60 ms per step (more than 16 steps a second) and stays there. From then on the only thing that changes is how much of the board your body fills.

Snake strategy: how to get a higher score

  1. Hug the edges early. While the snake is short, travel along the walls and cut inward only to grab food. This keeps the centre of the board free for later.
  2. Look two turns ahead. You can never reverse direction instantly, so before turning toward food, check that there's room to turn again afterwards.
  3. Switch to a zigzag when you're long. Sweeping the board in back-and-forth rows leaves you a guaranteed path and stops you trapping yourself in a pocket.
  4. Don't chase every piece. If the food is on the far side of your own body, take the long, safe route around rather than squeezing through a gap.
  5. Follow your tail. The cell your tail leaves is always free on the next step. When you're unsure where to go, steering towards your own tail is the safest move on the board.

Patterns to recognise

  • The dead-end pocket. When your body forms a U shape with the opening ahead of you, count the free cells inside. If there are fewer than your length, don't go in: the tail won't move out of the way in time.
  • Food against the wall. Approach it moving along the wall, not straight at it. Heading straight at a wall leaves you one turn to escape and no choice of which way.
  • Food in a corner. Enter a corner only when the side you'll leave by is empty. A corner forces two turns in a row, which is where most long runs end.
  • The U-turn. Turning back along your body takes two separate turns: press the first direction, let the snake move one cell, then press the second. The game only remembers the last key pressed during a step, so two quick presses in a row lose the first one.

Common mistakes

  • Turning into your own tail after two quick turns. This is how most runs end.
  • Panicking at higher speed. Above 30 points switch to wider, calmer loops instead of tight turns.
  • Boxing yourself into a corner with no exit. Always leave an open lane next to your body.
  • Cutting across the middle once the snake is long. It splits the free space into two halves, and the food will often appear in the one you can't reach.

Did you know?

  • The idea behind Snake goes back to the arcade game Blockade by Gremlin in 1976, a two-player game in which each player leaves a growing wall behind them.
  • Snake became world famous in 1997, when Nokia preinstalled it on the Nokia 6110 phone. It was programmed by Nokia engineer Taneli Armanto, and later Nokia phones shipped with new versions of it.
  • Filling the whole board is always possible in theory: a snake that follows one fixed path through every cell (a Hamiltonian cycle) never hits itself. It is very slow, which is why good players take shortcuts while the snake is short.

For the exact speed at every score and more tips, read our guide: Snake game tips: how to get a high score.

Frequently asked questions

Is Snake free to play online?

Yes. Snake runs in your web browser for free, with no download, installation or account.

Can I play Snake on a phone?

Yes. On a touch screen you can swipe on the board or use the on-screen arrow pad below it.

Does the snake get faster?

Yes. It starts at one step every 150 milliseconds and gets 10 ms faster after every five pieces of food, until it reaches one step every 60 ms after 45 pieces.

Can the snake go through walls?

No. In this version the walls are solid: hitting a wall or your own tail ends the game.

What is the highest possible score?

The board has 400 cells and the snake starts three segments long, so a perfect game that fills the whole board scores 397.

Where is my high score saved?

Your best score is stored only in your own browser on your device. Clearing browser data resets it. It reaches the Top 10 only if you add it.

Keep playing

Read more

Why Are Games So Big Now? From Floppy Disks to 100 GB Downloads

More Arcade games

Part of our arcade games collection.

New to browser games? See why playing in your browser beats installing apps.

Embed Snake on your website

Teachers, bloggers and site owners can add this game to a page for free. Copy the code below; please keep the credit link.