An open API service indexing awesome lists of open source software.

https://github.com/akashkobal/tic-tac-toe


https://github.com/akashkobal/tic-tac-toe

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# Tic Tac Toe
![Tic Tac Toe](https://res.cloudinary.com/deizvfuha/image/upload/v1721916435/Screenshot_2024-07-25_193636_twzjcr.png)

[Tic Tac Toe](https://AkashKobal.github.io/tic-tac-toe/) game, a classic game for two players where each player takes turns marking a grid of 3x3 squares with their X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game. It is also known as Noughts and Crosses or Xs and Os. The game is implemented using React and CSS

# Tic Tac Toe Web App

## 🎮 Game Overview
This is a simple Tic Tac Toe game built using React.js and deployed on GitHub Pages.

## 🚀 Features
- **Interactive Gameplay**: Play against another player.
- **Responsive Design**: Enjoy the game on any device.
- **Instant Feedback**: Highlights the winner or declares a draw.

## 📦 Installation
1. **Clone the repository**:
```bash
git clone https://github.com/your-username/tic-tac-toe.git

## Game rules

1. The game is played on a grid that is 3 squares by 3 squares
2. You are X, your friend is O. Players take turns putting their marks in empty squares
3. The first player to get 3 of their marks in a row (up, down, across, or diagonally) is the winner
4. When all 9 squares are full, the game is over

## Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.