~ / games / snake

🐍 Snake Game

Eat the food (●) to grow longer and faster. Hit a wall or your own tail and it is game over. Golden food sometimes appears: grab it within 5 seconds for +30.

snake · 20×20🍪 local record
Score0
Best score-
Length3
Speed1.0x
←↑↓→ / WASD move · Space start / pause · on mobile, swipe the screen or use the buttons · games 0

How to play Snake

  1. Press Space (or the Start button) or any arrow key to begin.
  2. Steer with the arrow keys or WASD. On mobile, swipe on the game screen or use the arrow buttons below it.
  3. Each pink food is +10 points, makes the snake one cell longer, and speeds it up a little (up to about 2.4×).
  4. Every 5 foods, a golden food appears for 5 seconds. It is worth +30 points and also adds one cell.
  5. Crash into a wall or your own body and the game ends. Press Space or P to pause at any time.

Snake game strategy: how to survive longer

Circle along the edges

Early on, heading straight for the food is fine. As you grow, get in the habit of looping wide along the edges of the board. Sharp turns in the middle are how most snakes trap themselves.

Fill the board in a zigzag

Once your length approaches half the board, sweeping back and forth one row at a time is the safest pattern. It looks slow, but you almost never get boxed in.

Your tail opens the way

The cell your tail leaves becomes free on the next step. If you feel trapped, follow the path your tail is clearing to find a way out.

Queue turns a beat early

At high speed it is easy to react late. The game remembers up to 3 direction inputs in order, so you can enter a double turn (for example ↑ then →) right before a corner.

Food eatenTime per stepSpeed
00.150 s1.0×
100.110 s≈ 1.4×
200.070 s≈ 2.1×
22+0.062 s≈ 2.4× (max)

Your best score and play count are saved only in a first-party cookie in this browser. Nothing is sent to a server. The game pauses automatically when you switch tabs.

FAQ

Can the snake go through walls?
No. As in the classic rules, touching a wall ends the game. Moving along the edge is fine.
Why won't my snake turn around?
A 180-degree turn would run straight into your own body, so it is ignored. Make two turns instead, for example up, then right, then down.
How fast does the snake get?
It starts at 0.15 seconds per step and gets 0.004 seconds faster with every food, capping at about 0.062 seconds per step (about 2.4×) after 22 foods.
How do I play Snake on my phone?
Swipe in the direction you want on the game screen, or tap the ▲◀▼▶ buttons below it. The page does not scroll while you swipe on the game.
What is the golden food?
Every 5 regular foods, a golden food appears for 5 seconds. Eating it scores +30 instead of +10 and adds one cell to your length.
Where is my high score saved?
Only in this browser's cookies, along with the number of games played. Use "Reset records" or clear cookies to delete it.

Related tools