Classic Snake game built with React and TypeScript.
Grow your snake, eat the food, avoid walls, and try to beat your high score!
- Arrow key controls (↑ ↓ ← →)
- Increasing speed as you progress
- High score tracking per session
- Pause game with space or click
- Simple, retro-style green grid
🎥 Video Demo:
Demo.webm
🖼 Screenshots:
- Clone the repo:
git clone <your-repo-url>
2. Navigate into the project:
cd snake-the-game
3. Install dependencies:
npm install
4. Run the development server:
npm run dev
5. Open http://localhost:5173 and play.
How to Play
+ Use the arrow keys to move the snake.
+ Eat the food to grow and score points.
+ Don't hit the walls or the snake itself.
+ Speed increases as you survive longer.
+ Pause the game by pressing Space or clicking anywhere.
