nehal2210 / Tic-Tac-Toe

Modern Tic Tac Toe using React JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe ☀️

image

🚀 How to Run the Game

  1. Make sure you have Node.js and npm (Node Package Manager) installed on your machine.

  2. Clone this repository to your local machine or download and extract the ZIP file.

  3. Open your terminal or command prompt and navigate to the project directory.

  4. Run the following command to install the required dependencies:

    npm install
    
  5. After the installation is complete, start the development server by running the following command

    npm run dev
    
  6. The game should now be running on your local server. Open your web browser and visit http://localhost:5173/ to play the game.

🎮 How to Play

  • The game starts with Player 1 (X) making the first move. Player 2 (O) will take turns after each move.
  • Click on an empty cell on the grid to mark your symbol (X or O).
  • The game will automatically determine if a player has won or if the game is a draw.
  • If a player wins, a message will be displayed indicating the winner.
  • To start a new game, simply refresh the page or tap restart.

About

Modern Tic Tac Toe using React JS


Languages

Language:JavaScript 81.5%Language:CSS 16.2%Language:HTML 2.3%