Tic Tac Toe Game Website
Ready to play?
https://tictactoeoriginal.netlify.app/
✨ Features
- 🎮 Play Tic Tac Toe against another player or against an AI opponent
- Choose between 🌞 Light or 🌙 dark mode
- 🤖 3 difficulty levels for the AI opponent
- 🥈 Easy -Makes random legal moves
- 🥇 Hard - Blocks wins and places pieces strategically
- 🏅 Expert - Uses minimax algorithm to play optimally
- 📱 Responsive design and works well on mobile and desktop screens.
- ✨ Fun effects using the Canvas API and animations
🛠 Implementation
Frontend
-
HTML
-
CSS
Backend
- JavaScript
Key Components
Board
- Renders the 3x3 grid and pieces using HTML canvas
Game
- Manages game state and logic
AI
- Computer opponent logic
Player
- Handles human player moves
Gameplay Screenshots
Light Mode:
Dark Mode:
About Page
Responsive design Example: