Games

Snake

Control the snake, eat the food, and don't hit the walls. How long can you survive?

Score: 0
Best: 0

Game Over

Score: 0

Speed
Grid
Snake Apple
Use arrow keys, WASD, or the on-screen buttons to control the snake.

Snake: The Classic Game

Snake is one of the most recognized games ever made. It was even one of the only games available on many mobile phones before smartphones. The concept is simple: control a snake, eat food, grow longer, and avoid crashing into the walls or yourself.

This browser version keeps the classic gameplay but adds modern touches like smooth movement, color customization, and adjustable speed.

How to Play

  • Move: Use arrow keys, WASD, or the on-screen buttons.
  • Eat: Guide the snake to the food. Each bite adds 10 points and makes you longer.
  • Avoid: Do not hit the walls or your own tail. That ends the game.
  • Start: Press Space or click the button to begin a new game.

On mobile, swipe on the game area to change direction. The snake responds to the direction of your swipe.

Tips for Getting a Higher Score

Plan your route

Do not just chase food blindly. Look ahead and give yourself room to turn without trapping your tail.

Use the edges

Hugging the outer walls keeps your tail out of the middle, which opens up more space for maneuvering.

Adjust your speed

Slow speed gives you more time to think. Fast speed is riskier but makes short games feel more exciting.

Master U-turns

You cannot reverse direction instantly, but you can do a quick two step turn to double back. This is useful when you are cornered.

Example: If you are heading right and need to go left, press Up then Left in quick succession. You will make a tight U-turn without reversing into yourself.

Customization Options

This version of Snake includes settings you will not find in the original:

  • Speed: Slow, normal, or fast. Pick the pace that matches your skill level.
  • Grid size: Small gives you more room. Big makes the game tighter and harder.
  • Colors: Change the snake and food to whatever colors you want.
  • Best score: Saved automatically in your browser. Reset it anytime.

Frequently Asked Questions

How do I pause the game?

This version does not have a pause button. The game ends when you hit a wall or yourself. You can start a new game anytime by pressing Space.

Does my best score save?

Yes. Your best score is stored in your browser’s localStorage. Clearing your browser data resets it.

Can I play on mobile?

Yes. Swipe on the game area to change direction. On-screen arrow buttons are also available.

Why does the snake sometimes not respond to my turn?

You cannot reverse direction. If the snake is moving right, pressing Left will not work. Turn up or down first, then turn left.

How is the score calculated?

Each piece of food is worth 10 points. The snake grows by one segment each time it eats.

Is there a way to win?

No. Classic Snake has no ending. The goal is to beat your own high score. The game only ends when you crash.