This is a simple Snake Game built using TypeScript, React, and TailwindCSS. The goal of the game is to control the snake, collect food, and grow longer while avoiding collisions with the walls or the snake's own body.
- Installation
- How to Play
- Features
- Screenshots
- Technologies Used
- Contributing
- License
Clone the repository:
git clone git@github.com:imadnan4/Snake-Game-.git
cd Snake-Game--main Install the dependencies:
Make sure you have Node.js installed.
Then, run the following command to install the required packages:
npm install Run the project:
Once the dependencies are installed, run the project using:
npm run dev Open the game in your browser:
After starting the development server, the game will be accessible at http://localhost:3000.
Use the arrow keys on your keyboard to control the snake.
The objective is to collect food, which will make the snake grow longer.
Avoid running into the walls or the snake's own body, as this will end the game.
Features
Classic Snake game mechanics.
Built with TypeScript for type safety.
Responsive design using TailwindCSS.
Smooth animations and intuitive controls.
Screenshots
- React: JavaScript library for building user interfaces.
- TypeScript: Superset of JavaScript that adds static typing.
- TailwindCSS: A utility-first CSS framework for styling.
- Vite: A fast development build tool for modern web projects.
If you'd like to contribute to the project, feel free to fork the repository and submit a pull request. Contributions are always welcome!
This project is licensed under the MIT License.