A modern, responsive Tic Tac Toe web game built with HTML, CSS, and JavaScript — featuring theme toggle, custom colors, animations, and sound effects.
🎮 Try it out here on live running website: Modern-Tic-Tac-Toe-WebGame
- Interactive Gameplay: Clickable grid with real-time win detection and draw handling.
- Customizable Colors: Choose different colors for "X" and "O" using the in-app color pickers.
- Theme Toggle: Switch between light and dark modes seamlessly.
- Audio Effects: Built-in sounds for click, win, draw, and reset.
- Animated Win Line: Draws a line over the winning combination.
- Victory Particles: Fun particle burst when someone wins.
- Responsive Design: Smooth experience on desktops, tablets, and phones.
- No Frameworks: Pure HTML, CSS, and JavaScript — lightweight and fast.
git clone https://github.com/tbhvishal/Modern-Tic-Tac-Toe-WebGame.git
cd Modern-Tic-Tac-Toe-WebGame
You can open index.html
directly in any modern web browser (Chrome, Firefox, Edge, etc.):
start index.html # Windows
open index.html # macOS
xdg-open index.html # Linux
Start playing instantly with zero setup.
You can customize the following features directly within the UI:
- Player Colors: Use the color picker to change the "X" and "O" colors in real time.
- Themes: Toggle between Light and Dark mode.
- Reset Game: Start over anytime with the Reset button.
Located in the assets/audio/
folder:
click.mp3
– Played on each movewin.mp3
– Celebrates a windraw.mp3
– Plays on a drawstart.mp3
– Plays when game resets
- Click on a cell to make a move.
- Watch the game announce turns, wins, and draws.
- Change player colors using the color pickers.
- Click “Reset Game” to play again.
- Toggle Light/Dark mode for a personalized experience.
- Win Animation: A line draws across the winning pattern.
- Victory Particles: Celebratory animation on player win.
- Responsive UI: Scales down beautifully on mobile.
- Optimized CSS Animations: Clean and smooth transitions.
If you find this project helpful and fun to play:
- 🌟 Star the repo on GitHub
- 🍴 Fork it to your own profile
- 🛠️ Submit ideas or bugs under Issues
- 🙌 Share with friends!
Contributions are welcome to improve the game further!
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -am 'Add cool feature'
) - Push to the branch (
git push origin feature-branch
) - Create a Pull Request
Found a bug? Have a suggestion?
Create a GitHub Issue — I’d love to hear from you!
This project is licensed under the MIT License — free for personal or commercial use.
- Thanks to all open-source contributors.
- Sounds and animations powered by simple logic and creativity — no external libraries used.
For collaboration or questions:
- GitHub: @tbhvishal
- Email: vishal95844@gmail.com
Let’s make simple games more fun and beautiful! 🕹️💡