A classic Tic Tac Toe game built with modern web technologies, including Next.js 15, ShadCN, and Tailwind CSS. This project showcases a clean and responsive user interface, seamless animations, and optimized performance for an engaging gameplay experience.
- Interactive Gameplay: Play Tic Tac Toe with a sleek and minimalistic design.
- Responsive Design: Optimized for mobile, tablet, and desktop.
- Modern UI: Styled with ShadCN and Tailwind CSS for smooth transitions and an aesthetic look.
- Developer-Friendly: A clean codebase with reusable components for easy scalability.
- Next.js 15: A React framework for building fast and scalable web applications.
- ShadCN: Component library for beautiful and accessible UI components.
- Tailwind CSS: A utility-first CSS framework for custom styling.
Follow these steps to run the project locally:
-
Clone the repository:
git clone https://github.com/your-username/tic-tac-toe.git cd tic-tac-toe
-
Install dependencies:
pnpm install
-
Run the development server:
pnpm run dev
- Select two players to start the game.
- Alternate turns to mark X or O on the grid.
- The first player to align three marks horizontally, vertically, or diagonally wins.
- Click "Reset" to start a new game.
tic-tac-toe/
├── public/
├── app/
├── components/
├── favicon.ico
├── globals.css
├── layout.tsx
└── page.tsx
├── components/ui/
├── lib/
├── .eslintrc.json
├── components.json
├── next.config.ts
├── pnpm-lock.yaml
├── postcss.config.mjs
├── package.json
├── tsconfig.json
├── README.md
├── tailwind.config.ts
└── types.ts
- Add AI for single-player mode.
- Include themes for customization (dark mode, light mode).
- Save game history for previous sessions.
Contributions are welcome! If you have any suggestions or improvements, feel free to create an issue or submit a pull request.
-
Fork the repository
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes
-
Commit your changes:
git commit -m '<type>[optional scope]: <description>'
-
Push to the branch:
git push origin feature/your-feature-name
-
Open a pull request
Caution
This project is licensed under the MIT License. See the LICENSE file for details.