Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/themysterysolver/tic_tac_toe

This project is a simple Tic-Tac-Toe game implemented using JavaScript, HTML, and CSS. It features a 3x3 grid where two players can take turns to place their marks. The game detects win conditions and highlights the winning blocks. A restart button allows players to start a new game without refreshing the page.
https://github.com/themysterysolver/tic_tac_toe

html-css-javascript tic-tac-toe

Last synced: 15 days ago
JSON representation

This project is a simple Tic-Tac-Toe game implemented using JavaScript, HTML, and CSS. It features a 3x3 grid where two players can take turns to place their marks. The game detects win conditions and highlights the winning blocks. A restart button allows players to start a new game without refreshing the page.

Awesome Lists containing this project

README

        

# 🎮 Tic Tac Toe Game

![HTML](https://img.shields.io/badge/HTML-Game%20Structure-red)
![CSS](https://img.shields.io/badge/CSS-Game%20Styling-blue)
![JavaScript](https://img.shields.io/badge/JavaScript-Game%20Logic-yellow)
![License](https://img.shields.io/badge/License-MIT-brightgreen)

A simple **Tic Tac Toe** game built using **JavaScript, HTML, and CSS**. This project allows two players to play Tic Tac Toe on a 3x3 grid, with a restart button to start a new game and visual indications for winning moves.

## 🚀 Features

- **Two-player gameplay**: Players alternate turns until one wins or the game ends in a draw.
- **Win detection**: The game automatically detects a winner and highlights the winning combination.
- **Restart button**: Quickly reset the game without refreshing the page.
- **Responsive design**: The game is styled to look great on any screen size.

## 📝 How to Play

1. Open the `index.html` file in your web browser.
2. Players take turns clicking on the grid to place their marks.
3. When a player wins, the game highlights the winning blocks.
4. Click the **Restart** button to reset the game and play again.

## 🔧 Installation

1. Clone this repository to your local machine.
2. Open `index.html` in your browser to start playing.

## 📸 Screenshots

### Game Start Screen

Game Start

### Game Winning Move

Winning Move



## 🛠️ Technologies Used

- **HTML**: For the game structure.
- **CSS**: For styling the game board and elements.
- **JavaScript**: For implementing the game logic and interaction.

## 🤝 Contributing

Contributions are welcome! If you find any issues or want to improve the game, feel free to submit a pull request.

## 📜 License

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