Skip to content

Unknownzop/tictackaro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 TicTacKaro — Tic Tac Toe Game

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


✨ Features

  • 🧑‍🤝‍🧑 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

📦 Tech Stack

Technology Purpose
HTML Structure
CSS Styling and layout
JavaScript Game logic & events

🚀 Getting Started

  1. Clone the repository:
    git clone https://github.com/Unknownzop/tictackaro.git
  2. Open index.html in your browser.
  3. Choose your game mode and start playing!

🖼️ Screenshot

Game Screenshot


🛠️ How It Works

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

📜 License

This project is open-source under the MIT License.

About

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.

Resources

Stars

Watchers

Forks

Contributors