A simple and interactive Tic-Tac-Toe game built using HTML, CSS, and JavaScript. This project was created as a practice project to strengthen my understanding of JavaScript fundamentals, DOM manipulation, event handling, game logic, and UI styling.
- 🎯 Two-player gameplay (X and O)
- 🎨 Different colors for X and O
- 🏆 Winner detection
- 🤝 Draw detection
- 🔄 Reset and New Game functionality
- 📱 Responsive design
- 🌈 Custom themed UI
- HTML5
- CSS3
- JavaScript (ES6)
Through this project, I practiced and improved my understanding of:
- DOM Manipulation
- Event Listeners
- Arrays and Loops
- Functions
- Conditional Statements
- Game Logic Implementation
- Dynamic Styling with JavaScript
- Resetting and Managing State
![]() Gameplay Screen |
![]() Winner Screen |
- Clone the repository
git clone https://github.com/bhagyashah-dev/Tic-Tac-Toe-Game.git- Navigate to the project directory
cd tic-tac-toe- Open
index.htmlin your browser.
This project was built while learning JavaScript and was inspired by the following resources:
- 🎥 YouTube Tutorial: Apna College JavaScript Tutorial & Project
- 📂 GitHub Repository: Shraddha Khapra JS Projects Repo
Special thanks to the creators of these resources for helping me understand the concepts and implementation.
- Single-player mode with AI
- Score tracking
- Sound effects and animations
- Dark/Light mode
- Move history
- Improved UI and accessibility
This is a practice project created for learning purposes and to improve my JavaScript skills. Feedback and suggestions are always welcome!
⭐ If you found this project interesting, feel free to star the repository!

