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.

Frequently Asked Questions

How do I play Snake?

The game uses a tick-based loop inside requestAnimationFrame on a 20x20 grid canvas. Movement speed starts at 150ms per tick and decreases by 3ms per food eaten (minimum 60ms). A direction queue buffers up to 3 inputs to prevent frame-skip reversals. Food spawns by building a list of all unoccupied cells and selecting one randomly. Collision checks test the head position against wall boundaries and body segments.

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.