Skip to content

mohithackz/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe 🎮

A browser-based Tic Tac Toe game built using HTML, CSS, and JavaScript.

This project focuses on implementing core game logic, handling user interactions, and maintaining predictable UI behavior.


🚀 Features

  • Player selection (X / O)
  • Win detection
  • Draw detection
  • Game reset functionality
  • Winner highlight message
  • Confetti celebration 🎉
  • Clean and responsive layout

🧠 What I Learned

While building this project, I strengthened my understanding of:

  • DOM manipulation
  • Event handling
  • State management in JavaScript
  • Writing safer conditional logic
  • Preventing invalid user actions
  • Structuring small projects properly

🛠️ Tech Stack

  • HTML
  • CSS
  • JavaScript

▶️ How To Run Locally

  1. Clone the repository:
git clone https://github.com/mohithackz/tic-tac-toe.git
  1. Open index.html in your browser.

📌 Future Improvements

  • Score tracking
  • AI opponent
  • Sound effects
  • Mobile optimization

👨‍💻 Author

Mohit Yadav

About

Browser-based Tic Tac Toe built with HTML, CSS, and JavaScript. A browser‑based Tic Tac Toe game built with HTML, CSS, and JavaScript. Includes player selection (X/O), win and draw detection, score reset, and a clear visual layout. This project focuses on DOM manipulation, game logic, event handling, and creating predictable interactive UI behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors