Skip to content

EcounidT/Tic-Tac-toe-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

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.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Make sure you have Node.js installed on your machine. You can check if you have it installed by running:

node -v

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/tic-tac-toe-app.git
  2. Navigate to the project directory:

    cd tic-tac-toe-app
  3. Install the dependencies:

    npm install

Running the Application

To start the application, run:

npm start

This will start the development server and open the application in your default web browser. The game will be accessible at http://localhost:3000.

Game Rules

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

Built With

  • React - A JavaScript library for building user interfaces
  • CSS for styling

Author

Your Name

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published