https://github.com/narayan954/tic-tac-toe
https://github.com/narayan954/tic-tac-toe
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/narayan954/tic-tac-toe
- Owner: narayan954
- Created: 2023-09-08T21:18:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T05:51:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-18T10:17:19.230Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://narayan954.github.io/tic-tac-toe/
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
---