An open source sleek, browser-based Tic Tac Toe game built with HTML, CSS, and JavaScript. Play against a friend or challenge the CPU in this responsive, interactive experience.
🌐 Live Demo: tictackaro.vercel.app
- 🧑🤝🧑 Two Game Modes: Player vs Player and Player vs CPU
- 🧠 Basic AI logic for CPU opponent
- 📊 Score tracking for X, O, and ties
- 🖼️ Modal-based result display
- 🔁 Restart and quit options
- 📱 Responsive design for desktop and mobile
| Technology | Purpose |
|---|---|
| HTML | Structure |
| CSS | Styling and layout |
| JavaScript | Game logic & events |
- Clone the repository:
git clone https://github.com/Unknownzop/tictackaro.git
- Open
index.htmlin your browser. - Choose your game mode and start playing!
The game uses DOM manipulation and event listeners to track player moves, check for wins or draws, and update the UI accordingly. Here's a quick breakdown:
- Game Board: 3×3 grid of clickable cells
- Turn Logic: Alternates between X and O
- Win Detection: Checks predefined winning combinations
- Draw Detection: Checks if all cells are filled without a winner
- Modal Display: Shows result and options to restart or quit
This project is open-source under the MIT License.
