Skip to content

Divyamsharma-18/Basic-Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Basic Tic-Tac-Toe (Play With a Friend!)

Welcome to Basic Tic-Tac-Toe — a lightweight, minimal, and super friendly (just like your crush before exams 👀) version of the legendary 3x3 strategy game.

Play it live here: 👉 https://tictactoewithafriend.netlify.app/

Whether you're X or O, whether you're competitive or just vibing — this game is here to settle the real question: Who’s the smarter one between you two.


✨ Features

  • ✅ Two-player mode (Play with your friend beside you — no matchmaking needed)
  • ✅ Simple & clean UI (No distractions, no ads, no NFT pop-ups, promise 🙏)
  • ✅ Highlights winner instantly 🎉
  • ✅ Reset board anytime to play again 🔄

🧠 Tech Stack

Technology Purpose
HTML Structure of the game board
CSS Styling and layout (aka making it not look like 1998)
JavaScript Game logic, move tracking, win validation

No frameworks. No build tools. Just pure vanilla web magic 🍦✨.


🚀 Live Demo

Click to play: https://tictactoewithafriend.netlify.app/

Bring a friend. Or play both sides yourself. We won’t judge. 😄


📦 Setup and Run Locally

# Clone the repository
git clone https://github.com/Divyamsharma-18/Basic-Tic-Tac-Toe.git

# Navigate to project folder
cd Basic-Tic-Tac-Toe

# Open index.html in browser

No dependencies. Just open and play. 🎉


🎯 Game Rules (In Case You Forgot 😉)

  • Players take turns marking X or O.
  • First one to connect 3 in a row (horizontally, vertically, or diagonally) wins.
  • If all 9 boxes are filled with no winner → It’s a draw, friendship stays intact. 🤝

🏗️ Project Structure

Basic-Tic-Tac-Toe/
│── index.html    # The UI layout
│── style.css     # All styling & layout positioning
└── script.js     # Game logic (the brain)

🧑‍💻 Author

Divyam Sharma 💻 GitHub: https://github.com/Divyamsharma-18 🌍 Portfolio: https://divyamsharma.netlify.app

If you liked this tiny game, you might also like the crazy, heartfelt, over-the-top projects I build at 2 AM.


⭐ Show Some Love

If you found this fun (or competitive energy was released), consider giving the repository a Star ⭐. It keeps the motivation bar full like a health potion in RPG games 🔥⚔️


Made with ❤️, logic, and a tiny bit of “pls let me win this round” energy.

Want me to add animated emotions on win or AI opponent mode next? 😏

Image