This project implements a classic Tic-Tac-Toe game using React.js. It provides a simple and intuitive user interface for playing the game.
- Two players can play against each other.
- Indicates when a player has won the game.
- Displays a message when the game ends in a draw.
- Clone this repository to your local machine:
git clone https://github.com/Faizanusmani06/tic-tac-toe.git
- Navigate to the project directory:
cd tic-tac-toe
- Install dependencies:
npm install
- Start the development server:
npm start
- Access the Tic-Tac-Toe game through your browser at
http://localhost:3000
.
- Player 1 starts the game by clicking on an empty square.
- Player 2 takes their turn by clicking on another empty square.
- Players continue to alternate turns until one player wins the game or the game ends in a draw.
- To start the game, click on the "New Game" button.