A modern implementation of the classic Snake game built with React, TypeScript, and Vite. Experience smooth gameplay with a clean, minimalist interface powered by Tailwind CSS.
- ๐ฎ Intuitive controls with keyboard arrows and touch support for mobile devices
- ๐ Dark/Light theme with system preference detection
- โธ๏ธ Pause and resume gameplay functionality
- ๐ Real-time score tracking
- ๐ฏ Smooth snake movement and collision detection
- ๐จ Modern, responsive UI with Tailwind CSS
- ๐ฒ Toggleable grid display option
- ๐พ Persistent settings (theme and grid preferences)
- ๐ง Built with React and TypeScript for type safety
- Node.js (version 18 or higher)
- npm or yarn package manager
- Clone the repository:
git clone https://github.com/mrpineapples/snake.git
cd snake- Install dependencies:
npm installTo start the development server:
npm run devThis will start the development server at http://localhost:5173.
To create a production build:
npm run buildTo preview the production build:
npm run preview- React 19
- TypeScript
- Vite
- Tailwind CSS
- ESLint for code quality
This project is open source and available under the MIT license.