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

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

Tic Tac Toe game
https://github.com/rohitinu6/tic-tac-toe

javascript project tic-tac-toe web-development

Last synced: 12 months ago
JSON representation

Tic Tac Toe game

Awesome Lists containing this project

README

          

# Tic Tac Toe
Welcome to the Tic Tac Toe game! This project is a simple, yet fun implementation of the classic Tic Tac Toe game using JavaScript. You can play the game here.

# Features
- Play against another player in a 3x3 grid.
- Real-time game status updates.
- Simple, clean, and responsive UI.
- Restart game functionality.

# Installation

To run this project locally, follow these steps:

1. **Clone the repository:**

```
git clone https://github.com/rohitinu6/Tic-Tac-Toe.git
```

2. **Navigate to the project directory:**

```
cd Tic-Tac-Toe
```

3. **Open the index.html file in your browser:**

You can do this by double-clicking the index.html file or by running a local server.

# Usage
To start playing the game, simply visit the deployed link and follow these steps:

1. Decide which player will be 'X' and which will be 'O'.
2. Click on any empty cell in the grid to make your move.
3. The game will automatically check for a winner or a draw after each move.
4. Click the "Restart" button to start a new game.

# Game Rules
- The game is played on a grid that's 3 squares by 3 squares.
- Player 'X' goes first.
- Players take turns putting their marks in empty squares.
- The first player to get 3 of their marks in a row (up, down, across, or diagonally) is the winner.
- If all 9 squares are full and no player has 3 marks in a row, the game is a draw.

# Contributing
Contributions are welcome! If you'd like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Commit your changes.
4. Push the branch to your fork.
5. Submit a pull request.

# License
This project is licensed under the MIT License. See the LICENSE file for details.

# Contact
If you have any questions or suggestions, feel free to reach out:

# **GitHub: rohitinu6**
# **Email: rohitinu6@gmail.com**
# **Enjoy playing Tic Tac Toe!**