Skip to content

sanjaysathyarapu/CMPE282-HW1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game in React

This project is a simple implementation of the classic Tic Tac Toe game built with React. It allows two players to play the game in turns on the same computer. The game automatically detects the winner and can be restarted at any time.

Features

  • A 3x3 game board
  • Turn-based gameplay for two players
  • Highlights the winner's combination
  • A restart button to play again

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before you begin, ensure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/sanjaysathyarapu/CMPE282-HW1.git

  2. Navigate to the project directory:

    cd CMPE282-HW1

  3. Install dependencies:

    npm install

  4. Start the development server:

    npm start

This runs the app in development mode. Open http://localhost:3000 to view it in the browser.

How to Play: The game is played on a grid that's 3 squares by 3 squares. Two players take turns playing by entering their symbol (X or O) in an empty square. The first player to get 3 of their symbols in a row (up, down, across, or diagonally) is the winner. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published