A clean, interactive, and modern Tic Tac Toe game built using React. Developed as part of the Web Dev Cohort 2026 project.
This project demonstrates fundamental React concepts including component structure, state management, event handling, and dynamic rendering.
- 3x3 Game Board: Classic grid layout.
- Two-Player Turn System: Alternates between Player X and Player O.
- Custom UI Assets: Uses custom icons for game pieces.
- Win & Draw Detection: Automatically calculates game outcomes.
- Game Reset: Easily clear the board to play again.
- Modern UI: Dark theme with beautiful gold accents and gradients.
- Responsive: Works smoothly on both mobile and desktop screens.
- React & Vite
- CSS3 (Custom theming)
- JavaScript (ES6+)
Follow these simple steps to run the game locally on your machine.
-
Install dependencies:
�ash npm install -
Start the development server:
�ash npm run dev -
Open in Browser: Click the local link provided in the terminal (usually http://localhost:5173).
- Player 1 starts as "X".
- Click any empty box on the grid to place your mark.
- Player 2 then takes their turn as "O".
- The first player to get 3 marks in a row wins!
- If all 9 squares are filled without a winner, the game is a draw.
- Click "Reset Game" to start over.
Enjoy the game!