Snake Game

Your input stays in your browser and is never sent.

Steer the snake with the arrow keys or a swipe, eat food and grow as long as you can. Choose the speed, board size and whether walls end the game.

  1. Adjust
  2. PlayScore 0
Speed
Board size
Walls

Turn with the arrow keys or WASD, and pause with Space. On a phone, swipe on the board or use the buttons below it.

Snake GameThe snake grows by one every time it eats. Keep it away from the walls and its own body.

What is the Snake Game?

In the Snake Game you steer a snake that never stops moving, guiding it to food so it grows as long as possible. Each piece of food adds one square to its body and one point to your score.

The game ends when the head hits a wall or the snake's own body. The longer the snake gets, the less room there is, so you need to plan your route ahead.

There is nothing to sign up for or install. Open the page and play for free.

How to play the Snake Game

  1. Choose speed and boardPick one of three speeds and three board sizes. You can also switch to a mode where the snake passes through the walls.
  2. Turn the snakeTurn with the arrow keys or WASD. On a phone, swipe on the board or press the buttons below it.
  3. Eat and growThe black dot is food. Every time the snake eats, it grows and new food appears somewhere else.

Why play Snake on SOKUFU

Quick double taps are not lost
Two turns pressed in a row are remembered in order, so a tight turn into the next lane goes exactly as planned.
No accidental reversing
A key pointing straight back is ignored, so a slip of the finger never sends the snake into itself.
Pause any time
Press Space or the pause button to stop, and carry on whenever you like.
Best score is kept
Your best score is stored only in your browser and shown the next time you visit.
Runs entirely in your browser
The game and your records are handled on your device. Nothing is sent to a server.
Plays well on phones
The board shrinks to fit your screen, and every move works with touch alone.

Tips for a longer snake

Making wide loops along the edges keeps the body tidy and makes dead ends less likely. Lots of small turns in the middle tend to box the snake in.

Once the snake is long, circling towards where the tail is leaving is safer than heading straight for the food. The tail's square frees up on the next step, so you can move into it.

More games to play with the Snake Game

Snake Game FAQ

Can I play on a phone?

Yes. Swipe up, down, left or right on the board to turn. You can also use the arrow buttons under the board.

What changes with "Pass through"?

Hitting a wall no longer ends the game; the snake comes out on the opposite side. Only its own body can stop it.

Where is my best score saved?

Only in your browser (localStorage). Clearing your browsing data also clears the record.

Can I pause mid-game?

Yes. Press Space or the pause button under the board. Press it again or change direction to carry on.

Is anything I do sent to a server?

No. The whole game runs in your browser, and the snake's moves and your score are never sent anywhere.