Skip to content

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.

Notifications You must be signed in to change notification settings

nmohammednawaz/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation


Tic-Tac-Toe React.js Application

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.

Deployed Link:

You can play the game online by visiting the following link: Tic-Tac-Toe Game

Components:

  1. Player Component (Player.jsx):

    • Displays player information including name and symbol.
    • Allows players to change their names.
  2. GameBoard Component (GameBoard.jsx):

    • Renders the game board grid.
    • Handles square selection by players.
  3. Log Component (Log.jsx):

    • Displays a log of previous game turns.
  4. GameOver Component (GameOver.jsx):

    • Indicates the winner or a draw and provides an option to restart the game.

Functionality:

  • 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.

Usage:

To play the game:

  1. Visit the deployed link: Tic-Tac-Toe Game
  2. Take turns with another player marking squares in the grid.
  3. The game will automatically determine the winner or declare a draw.
  4. Enjoy playing Tic-Tac-Toe!

Developer Information:

Developer: N Mohammed Nawaz Contact: nmohammednawaz786@gmail.com GitHub Repository: https://github.com/nmohammednawaz/Tic-Tac-Toe


About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published