This is a simple Tic-Tac-Toe game built with React. The application allows two players to take turns marking the spaces in a 3×3 grid with their respective symbols (X and O). The game checks for a winner or a draw after each move.
To get a local copy up and running, follow these simple steps.
Make sure you have Node.js installed on your machine. You can check if you have it installed by running:
node -v-
Clone the repository:
git clone https://github.com/yourusername/tic-tac-toe-app.git
-
Navigate to the project directory:
cd tic-tac-toe-app -
Install the dependencies:
npm install
To start the application, run:
npm startThis will start the development server and open the application in your default web browser. The game will be accessible at http://localhost:3000.
- Players take turns placing their symbol (X or O) in an empty square.
- The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
- If all squares are filled and no player has three in a row, the game ends in a draw.
- React - A JavaScript library for building user interfaces
- CSS for styling
Your Name
This project is licensed under the MIT License - see the LICENSE file for details.