This project is a classic Tic-Tac-Toe game implemented with React. It provides an interactive and fun gaming experience. Challenge your friends or play against the computer!
Follow these instructions to set up and run the project on your local machine.
Before you begin, ensure you have the following software and tools installed:
Clone the project repository:
git clone https://github.com/tncrayt/tic-tac-toe.git
Navigate to the project directory:
cd tic-tac-toe
Install project dependencies:
npm install
or
yarn install
Start the application:
npm start
or
yarn start
This will start the development server, and you can access the game in your web browser.
The game starts with two players taking turns to place their marks (X and O) on the grid. The first player to achieve a row, column, or diagonal of their marks wins. The game also ends if all cells on the board are filled without a winner, resulting in a draw.
The game is built using React, utilizing components and state management for the game logic. The AI opponent uses a simple algorithm to make strategic moves in single-player mode. CSS styles provide an interactive and visually appealing game board.
Contributions are welcome! If you have suggestions for improvements, find bugs, or want to add new features, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.