Online Snake Game - Classic Arcade

Play the classic snake game with increasing speed and swipe controls on mobile. Local high scores. No downloads or ads.

Runs in your browser. No data leaves your device.

About this tool

Classic Snake on a 20x20 grid. Steer the snake to eat food; each piece adds one point, one segment of length and a little speed. Hitting a wall or your own body ends the game.

Features
  • Starts at one move every 150ms and gets 3ms faster per food, down to 60ms
  • Walls are solid (no wrap-around)
  • Food always spawns on a free cell
  • Input buffer of up to 3 turns, so quick key presses are not lost; reversing straight into the neck is ignored
  • Swipe controls that turn mid-swipe: every 24px of finger travel can turn the snake, so one drag can steer through several turns
  • On-screen d-pad on touch devices
  • Best score saved on the device, with confetti on a new best
How to use it
  1. Press Start Game (or Space).
  2. Steer with the arrow keys / WASD, swipes or the d-pad.
  3. Eat the red food to grow and score.
  4. Avoid the walls and your own tail.
Inputs
  • Keyboard: arrow keys or WASD
  • Touch: swipe on the board, or the d-pad
Outputs
  • Score (food eaten) and best score
  • Final score on the Game Over screen
Limits and notes
  • Best score is stored in localStorage (overtooled:snake:best)
Keyboard shortcuts
  • Arrow keys / WASD: change direction
  • Esc / P: pause and resume
  • Space / Enter: start, resume or play again

Frequently Asked Questions

How does Snake work?

The game moves in ticks inside a requestAnimationFrame loop on a 20x20 grid. It starts at one move every 150ms and gets 3ms faster per food eaten (minimum 60ms). A direction queue holds up to 3 turns so fast inputs are not lost and the snake cannot reverse into itself. Food spawns on a random free cell, and hitting a wall or your body ends the game.

How do I control the snake?

Use arrow keys or WASD on desktop. On mobile, swipe in the direction you want the snake to move. The snake moves continuously and you change its direction.

Does it track my high score?

Yes. Your high score is saved locally so it persists between sessions.

Does the game get harder?

Yes. The snake speeds up as it grows longer, increasing the difficulty. The longer you survive and the more food you eat, the faster and more challenging it becomes.