This is a classic Tic-Tac-Toe game built with React.js and styled with Tailwind CSS. It features player turn tracking, win/draw detection, and a "New Game" button to reset the game. The game includes SVG icons for player moves (X and O), providing an enhanced visual experience.
Clone the repository:
git clone [email protected]:BurhanAhmad0/PRODIGY_WD_03.git
cd PRODIGY_WD_03
Install dependencies:
npm install
Run the app:
npm start
Open your browser and go to http://localhost:5173
to play the game!
src/components
: Contains the Square
component for rendering individual squares on the board. src/utils
: Contains utility functions like calculateWinner
to determine the winner or draw. src/pages
: Main game page with Board
and Game
components. src/layouts
: Contains Navbar
and Footer
components for site navigation.Contributions are welcome! Feel free to fork this repository and submit pull requests to improve the game or add new features.
This project is licensed under the MIT License. See the LICENSE file for more details.