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

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


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

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

---

# Tic-Tac-Toe Game

This is a simple Tic-Tac-Toe game built with React. Two players can take turns playing Tic-Tac-Toe, and the game displays the winner or a draw when the game ends. The scores of the blue and red players are kept track of, and they persist even after a page reload.

## Features

- Two players can take turns playing Tic-Tac-Toe.
- The game displays the score of each player on top.
- Player scores persist even after a page reload.

## Getting Started

### Prerequisites

- Node.js installed on your computer

### Installation

1. Clone the repository or download the ZIP file.

```
git clone
```

2. Navigate to the project directory.

```
cd tic-tac-toe
```

3. Install dependencies using npm.

```
npm install
```

### Usage

1. Start the development server.

```
npm run dev
```

2. Open your web browser and visit `http://localhost:3000` to play the Tic-Tac-Toe game.

### How to Play

- Click on an empty square to make your move.
- The game will alternate between "Blue" and "Red" players.
- The game will display the winner or a draw when the game ends.
- Click the "Reset Game" button to start a new game.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Author

- [Narayan Soni](https://github.com/narayan954)

---