This is a basic Tic-Tac-Toe game built using React.js. It allows two players to take turns marking squares in a 3x3 grid. The game tracks player turns, identifies a winner, and handles draw scenarios.
You can play the game online by visiting the following link: Tic-Tac-Toe Game
-
Player Component (
Player.jsx
):- Displays player information including name and symbol.
- Allows players to change their names.
-
GameBoard Component (
GameBoard.jsx
):- Renders the game board grid.
- Handles square selection by players.
-
Log Component (
Log.jsx
):- Displays a log of previous game turns.
-
GameOver Component (
GameOver.jsx
):- Indicates the winner or a draw and provides an option to restart the game.
-
Player Configuration:
- The game allows configuration of player names.
-
Game Logic:
- Tracks player turns and updates the game board accordingly.
- Determines the winner based on predefined winning combinations.
- Handles draw scenarios when all squares are filled without a winner.
-
Rematch:
- Provides a button to restart the game.
To play the game:
- Visit the deployed link: Tic-Tac-Toe Game
- Take turns with another player marking squares in the grid.
- The game will automatically determine the winner or declare a draw.
- Enjoy playing Tic-Tac-Toe!
Developer: N Mohammed Nawaz Contact: nmohammednawaz786@gmail.com GitHub Repository: https://github.com/nmohammednawaz/Tic-Tac-Toe