A modern, responsive, and AI-powered Tic-Tac-Toe game built using HTML, CSS, and JavaScript.
Challenge yourself against an intelligent AI with multiple difficulty levels and enjoy a smooth, animated UI experience.
๐ฅ Clean & Modern UI (Inter Font + Glassmorphism feel)
๐ค AI Opponent with 3 Difficulty Levels
๐ฏ Easy | Medium | Hard Modes
๐ Live Scoreboard Tracking
๐ต Sound Effects Toggle
๐ฑ Fully Responsive Design
๐จ Animated Win Line (SVG overlay)
๐ง Smart AI Logic
๐ผ๏ธ Dynamic Background Canvas
- Easy โ Random moves
- Medium โ Semi-strategic play
- Hard โ Unbeatable AI (Minimax-based logic)
Think you can beat Hard mode? ๐
- HTML5
- CSS3 (Modern styling + animations)
- Vanilla JavaScript
- SVG for win-line animation
- Canvas for dynamic background
No frameworks. No libraries. Pure logic.
โโโ index.html โโโ style.css โโโ game.js
- Clone the repository:
git clone https://github.com/your-username/your-repo-name.git Open the folder
Simply open index.html in your browser
โค๏ธ Built With Passion
โAnish built it by blessing of God.โ
๐ Live Demo: [See here]
Crafted with logic, design focus, and continuous learning.
๐ Connect With Me
If you liked this project, feel free to connect with me on LinkedIn and check out more of my work!
โญ Donโt forget to star the repo if you like it!
I challenged myself to build a modern version of Tic-Tac-Toe โ but not just a basic one.
So I added:
โ
3 AI Difficulty Levels (Easy, Medium, Hard)
โ
Unbeatable AI Logic
โ
Live Scoreboard
โ
Animated Win-Line (SVG)
โ
Sound Effects Toggle
โ
Fully Responsive UI
โ
Dynamic Canvas Background
The hardest part?
Designing the AI logic and handling different difficulty behaviors cleanly.
This project helped me improve:
โข Game state management
โข DOM manipulation
โข AI thinking logic
โข UI structuring & animations
Try beating Hard mode if you can ๐