A simple and interactive Tic Tac Toe game built using HTML, CSS, and JavaScript. This project allows two players to play the classic Tic Tac Toe game in the browser with sound effects, animations, and responsive design.
- ❌⭕ Two-player gameplay (X vs O)
- 🟩 Winning boxes highlight
- 📏 Automatic winning line animation
- 🔊 Sound effects for click, win, draw, and reset
- 📱 Responsive design (works on mobile, tablet, and desktop)
- 🎨 Smooth UI animations
- 🔒 Boxes lock after selection
- 🤝 Draw detection
- HTML5 – Structure of the game
- CSS3 – Styling, animations, and responsive layout
- JavaScript (Vanilla JS) – Game logic and interactions
- The game starts with Player X.
- Players take turns clicking on empty boxes.
- The first player to align three symbols in a row, column, or diagonal wins.
- The winning combination is highlighted with a line animation and color change.
- If all boxes are filled and no player wins, the match ends in a draw.
- Click the Reset Game button to start a new game.
- Clone the repository
git clone https://github.com/code-aadi/tic-tac-toe.git
-
Open the project folder.
-
Run the game by opening index.html in your browser.
You can play the live version here:
https://tic-tac-toe-game-aadi.vercel.app
The game layout automatically adjusts for:
- Mobile phones
- Tablets
- Desktop screens
Possible enhancements for this project:
- 🤖 Computer AI opponent
- 🏆 Scoreboard system
- 🌙 Dark mode
- 🎨 Improved animations
- 👥 Player name input
This project is open-source and free to use.
Developed by Aditya Kourav
If you like this project, feel free to ⭐ the repository.