🐍 Snake

The classic arcade game! Guide the snake to eat food and grow longer while avoiding walls and your own tail 😎

Score 0
Best 0
🐍

Press Start or an arrow key to begin

Arrow keys to steer Mobile: tap toward the direction you want to turn

 From Blockade to 350 Million Nokias

Snake descends from Blockade (1976), a two-player arcade duel where each player's light trail walled in the other — the same mechanic later immortalized by Tron's light cycles. The single-player, eat-and-grow variant crystallized on 8-bit home computers, but the version burned into global memory arrived in 1997, when Nokia shipped Snake on the 6110. Over the following decade an estimated 350 million-plus Nokia phones carried it, making Snake many people's first video game ever — played under desks and duvets on a 84×48-pixel screen.

This version keeps the classic ruleset — walls are lethal, speed ramps as you eat — with keyboard, WASD, and tap-to-turn touch controls. Your best score lives in your browser's local storage.

 The Mathematics of Never Dying

Snake has a beautiful theoretical core: a route that visits every cell of the grid exactly once and returns to its start is a Hamiltonian cycle, and a snake that rides one can never collide with itself — no matter how long it grows. Follow the cycle forever and you will, eventually and inevitably, fill the entire board. That's the "perfect game" (this version salutes it with a 🏆), and it's why Snake is a favorite testbed for AI pathfinding: the naive greedy bot that beelines for food dies young, while the Hamiltonian bot is immortal but agonizingly slow. Strong play — human or machine — is the art of shortcutting the cycle safely while the snake is short and reverting to discipline as it grows.

The human translation of that theorem is the boustrophedon sweep ("as the ox plows"): mow the board row by row in an S pattern. Early game, cut corners freely for efficiency; once your snake exceeds roughly a third of the board, get back on the lawnmower route. Two more load-bearing heuristics: check your exit before taking food (charging straight at the apple is the #1 novice death), and remember that your tail is always retreating — moving toward your own tail is almost always safe, and following it will usually unwind a self-trap.

 Why You "Pressed the Key" and Died Anyway

  • No 180° reversals. Heading left, a right-press is ignored (it would mean biting your own neck). Reversing takes two 90° turns — a U, not a flip.
  • One input per tick. The game consumes one direction change per grid step. Mashing two directions quickly means the second lands a cell later than you intended — the top cause of high-speed wall deaths. At speed, queue your turn one cell early instead of double-tapping.
  • Touch controls: tap to the side of the snake's heading to turn that way; taps ahead keep it straight. The feel differs from keys — calibrate for a few rounds before chasing your record.
  • Speed ramps with every meal. When reactions can't keep up, systematic routes beat reflexes — the sweep works at maximum speed precisely because it requires no in-the-moment decisions.

 Frequently Asked Questions

Can the game actually be beaten?

Yes — fill every cell of the board and you win outright. In practice only a disciplined sweeping route gets there; freestyle play traps itself long before the board fills.

Where is my best score stored?

Locally in your browser — nothing is uploaded. Clearing site data or switching devices resets it, so screenshot the results screen for bragging rights.

What should I practice to break a plateau?

Run "no-food laps": ignore the apple and practice sweeping the full board cleanly for a few minutes. Once the route is muscle memory, food becomes something you collect in passing, and the score follows.

Why did the apple seem to not register?

Movement is cell by cell — the head must enter the food's exact cell; brushing past diagonally doesn't count. If it keeps happening at high speed, it's the one-input-per-tick timing, not the hitbox.