A modern and interactive Tic Tac Toe game built using React.js. This project allows two players to play Tic Tac Toe in a clean and responsive user interface with winner detection and game reset functionality.
- ❌ Player X and ⭕ Player O turns
- 🏆 Automatic winner detection
- 🔒 Prevents moves after game completion
- 🔄 Reset game functionality
- 🎨 Modern and responsive UI
- ⚛️ Built with React Hooks (
useState,useRef)
- React.js
- JavaScript (ES6+)
- CSS3
- HTML5
src/
│
├── components/
│ └── TicTacToe/
│ ├── TicTacToe.jsx
│ ├── TicTacToe.css
│
├── Assets/
│ ├── circle.png
│ └── cross.png
│
├── App.js
├── index.js
└── index.css
git clone https://github.com/YOUR_USERNAME/tic-tac-toe.gitcd tic-tac-toenpm installnpm startThe application will start on:
http://localhost:3000- Player X starts first.
- Players take turns marking empty cells.
- First player to get three symbols in a row, column, or diagonal wins.
- Click the RESET button to start a new game.
- Draw detection
- Scoreboard system
- Single-player mode with AI
- Sound effects
- Dark/Light theme
- Online multiplayer support
Contributions are welcome.
- Fork the repository
- Create a new branch
git checkout -b feature-name- Commit your changes
git commit -m "Add feature"- Push to GitHub
git push origin feature-name- Open a Pull Request
Vedant Ved
- GitHub: https://github.com/Vedant43hh
This project is licensed under the MIT License.
