🐍 Snake

The classic snake game where you eat food and grow longer. Don't hit the walls or yourself!

Ready to Play?
Press Start or Space to begin
Score: 0

Controls:

Move: Arrow Keys

Spacebar: Start/Pause

Goal: Eat food and grow without hitting walls or yourself!

🏆 High Scores

Loading scores...

Game Info

Difficulty:Medium
Players:1 Player
Genre:Arcade
Year:1976 (Original)

How to Play

Objective:

Control the snake to eat food and grow as long as possible without hitting walls or yourself.

Controls:
  • Arrow Keys to move
  • Spacebar to start/pause
Scoring:
  • Each food eaten: 10 points
  • Snake grows by one segment
Game Over:

Hitting walls or your own body ends the game.

Features

Smooth snake movement
Collision detection
Random food placement
Score tracking
Pause/resume gameplay
Game reset functionality

Technical Details

Built with: React 19, TypeScript
Graphics: CSS Grid & Positioning
Animation: setInterval game loop
Controls: Keyboard event handling
State: React hooks & useState