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

https://github.com/sonucs12/tic-tac-toe-game

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

css game html javascript project

Last synced: about 2 months ago
JSON representation

Tic Tac Toe Game

Awesome Lists containing this project

README

          

# Tic-Tac-Toe Game

## Description
This is a simple and interactive Tic-Tac-Toe game built using HTML, CSS, and JavaScript. It features a clean and responsive design, tracks player scores, and includes functionalities for restarting the game and highlighting the winning combination.

## Features
- **Interactive Gameplay:** Clickable grid for user-friendly gameplay.
- **Score Tracking:** Displays the scores for both Player X and Player O.
- **Responsive Design:** Optimized for all screen sizes, including mobile devices.
- **Highlighting Winners:** Highlights the winning combination of boxes.

## Technologies Used
- **HTML:** For structuring the game interface.
- **CSS:** For styling and layout.
- **JavaScript:** For game logic and interactivity.

## How to Play
1. The game starts with Player X.
2. Players take turns clicking on empty boxes to place their marker (X or O).
3. The first player to align three markers in a row, column, or diagonal wins.
4. If all boxes are filled and no player has aligned three markers, the game ends in a draw.
5. Use the "Restart Game" button to reset the game board and scores.

## Project Links
- **LinkedIn:** [Sonu Kumar's LinkedIn Profile](https://www.linkedin.com/in/sonu-kumar-15b6b3239/)
- **GitHub:** [Sonu Kumar's GitHub Profile](https://github.com/Sonucs12)
- **Portfolio:** [Sonu Kumar's Portfolio](https://sonucs-portfolio.netlify.app/)

## How to Run
1. Clone this repository to your local machine:

git clone https://github.com/Sonucs12/tic-tac-toe.git

2. Open the index.html file in your preferred web browser.

Screenshots
![Screenshot 2025-01-08 211143](https://github.com/user-attachments/assets/fea6b36f-c919-48e3-b27f-2a7f9055b189)

## Acknowledgments
This project is designed and developed by Sonu Kumar. If you have any feedback or suggestions, feel free to reach out via the links above.