A modern, fully responsive Snake game built with React and styled with tailwind-css.
Visit the live demo: Snake Game
| Start Screen | Gameplay |
|---|---|
![]() |
![]() |
Before you begin, ensure you have the following installed:
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository
git clone https://github.com/yourusername/snake-game.git- Navigate to the project directory
cd snake-game- Install dependencies
npm install- Start the development server
npm run devsnake-game/
├── public/
├── src/
│ ├── SnakeGame.jsx
│ ├── App.jsx
│ ├── index.css
│ └── main.jsx
├── .gitignore
├── LICENSE
├── README.md
├── index.html
├── package.json
├── package-lock.json
├── postcss.config.js
├── tailwind.config.js
└── vite.config.js
- Select Starting Level - Choose from levels 1-12 based on your skill
- Control the Snake:
- Desktop: Use arrow keys
- Mobile: Swipe in desired direction
- Eat Food - Collect the glowing pink orbs to grow and score
- Avoid Obstacles:
- Don't hit walls (🧱)
- Don't collide with yourself
- Complete Levels - Reach the target score to advance
- Progress - Beat all 12 levels!
If you discover any bugs, please report them in the Issues section.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.

