Snake

Steer the snake to the red food. Each bite adds one cell and 10 points.

🐍 Snake
Press Space or Tap to Start

Score

Current 0
Best 0
Length 1

Options

Controls
←↑→↓ or WASD Move
P or ESC Pause
Space Start/Restart

Embed Snake on your site

Paste the code into the HTML view of your post or page. It works on WordPress, Blogger and most site builders that allow iframes.

You steer the head around a 20 x 20 board and eat food. The snake never stops, and hitting a wall or its own body ends the game. It starts in the middle, one cell long and facing right. Press Space or "Start Game" to begin. Each food gives 10 points and one more cell.

SpeedTime per cellEdge to edge (20 cells)
Slow0.15 s3 s
Normal (default)0.1 s2 s
Fast0.06 s1.2 s

Speed stays at the chosen setting as the snake grows.

Wall Wrap and body collisions

Wall Wrap is off by default, so leaving the board ends the game. Turned on, the snake exits one side and enters the opposite one, leaving only its own body as a danger. A collision happens if any part of the body, tail tip included, sits in the cell the head enters. When chasing your tail, keep one cell of space.

Steer with the arrow keys or W, A, S, D, or swipe on the board or use the buttons below it on a phone. Esc or Pause stops the game. You cannot turn straight back on yourself, and if you press two keys within one cell of movement, only the last counts. A swipe must be over 30 pixels.

Only the best score is saved, in the browser as snake-best. Scores with Wall Wrap on count toward the same record, and your options reset to defaults on refresh.