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

https://github.com/lakshayd02/tic_tac_toe

The tic-tac-toe game is for two players. One player plays X and the other plays O. The players take turns placing their marks on a grid of three-by-three cells. If a given player gets three marks in a row horizontally, vertically, or diagonally, then that player wins the game.
https://github.com/lakshayd02/tic_tac_toe

cascading-style-sheets css html html5 javascript tic-tac-toe tic-tac-toe-game

Last synced: 6 months ago
JSON representation

The tic-tac-toe game is for two players. One player plays X and the other plays O. The players take turns placing their marks on a grid of three-by-three cells. If a given player gets three marks in a row horizontally, vertically, or diagonally, then that player wins the game.

Awesome Lists containing this project

README

          

# Tic-Tac-Toe

This is a simple yet engaging Tic-Tac-Toe game built using **HTML, CSS, and JavaScript** 🎮. It allows two players to compete against each other in a classic 3x3 grid. The game offers a user-friendly interface with smooth interactions and instant feedback on moves ⏱️.

## Key Features:

- **Two-Player Mode** – Players take turns marking 'X' ❌ and 'O' ⭕ on the grid.
- **Win Detection** – Automatically checks for winning conditions 🏆 and announces the winner 🎉.
- **Draw Detection** – If all boxes are filled with no winner, the game declares a tie 🤝.
- **Restart Button** – Allows players to reset the board 🔄 and play again.
- **Responsive Design** – Works seamlessly across different screen sizes 📱💻.

## Demo

Check out the live demo of the game here: [Tic-Tac-Toe Game Demo](https://yourdemo-link.com) 🚀

## Installation

To run the Tic-Tac-Toe game on your local machine, follow these steps:

1. Clone this repository to your local machine:

```bash
git clone https://github.com/your-username/tic-tac-toe.git
```

2. Navigate to the project directory:

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

3. Open the `index.html` file in your browser to play the game.