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.
- Host: GitHub
- URL: https://github.com/lakshayd02/tic_tac_toe
- Owner: LakshayD02
- Created: 2023-10-26T16:40:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T14:27:02.000Z (8 months ago)
- Last Synced: 2025-04-15T16:18:25.646Z (6 months ago)
- Topics: cascading-style-sheets, css, html, html5, javascript, tic-tac-toe, tic-tac-toe-game
- Language: JavaScript
- Homepage: https://tic-tac-toe-lakshay.netlify.app
- Size: 73.2 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.