Code Monkey home page Code Monkey logo

tic-tac-toe-game's Introduction

React Tic-Tac-Toe

Welcome to my React Tic-Tac-Toe project! This README will give you an overview of how the project works.
Check Live - https://4gm45r-5173.csb.app/

Project Description

This project is a simple implementation of the classic game of Tic-Tac-Toe using React. It allows two players to take turns marking squares on a 3x3 grid to win the game. Here's how it works:

Gameplay

  1. Player Names: At the beginning of the game, you can set the names of Player 1 (X) and Player 2 (O) by clicking the "Edit" button next to each player's name.

  2. Game Board: The game board consists of a 3x3 grid. Players take turns clicking on an empty square to place their symbol (X or O). Once a square is chosen, it cannot be selected again.

  3. Winning: The game continues until one player has three of their symbols in a row horizontally, vertically, or diagonally, or until all squares are filled, resulting in a draw.

  4. Game Over: When the game ends with a winner or a draw, a "Game Over" message is displayed, along with an option to start a new game.

How to Run the Project

To run the project locally, follow these steps:

  1. Clone the repository to your local machine.

  2. Open a terminal and navigate to the project directory.

  3. Run the following command to install dependencies:

    npm install
    
    
    

tic-tac-toe-game's People

Contributors

yash-srivastav16 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.