How to play Snake
- Pick a difficulty — the snake moves faster on harder settings.
- Steer with the arrow keys on a keyboard, or swipe on a touch screen.
- Eat the food to grow longer; every piece raises your score.
- Avoid the walls and your own tail — one collision ends the run.
- Your high score is saved automatically, so each run can chase a new record.
Frequently Asked Questions
How do I play Snake?
Use the arrow keys to steer the snake. Eating food grows the snake and adds points — avoid hitting walls or yourself.
Does it support touch controls?
Yes. On mobile, direction buttons appear that you tap to steer the snake.
Does it need a connection or installation?
No. The game runs entirely in your browser — open and play, no installation.
How do I control the snake on a phone?
Swipe in the direction you want to turn. The game reads the swipe gesture, so no on-screen buttons get in the way of the board.
What does the difficulty setting change?
Movement speed. Higher difficulties give less reaction time between moves, which rewards planning a route instead of improvising.
How do I avoid trapping myself?
Keep away from the walls late in the game and avoid coiling into tight spaces — leave yourself an escape lane as the tail gets longer.
Technical References
- Canvas Game Development — MDN: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial