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.
- ✅ 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 🔄
| 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 🍦✨.
Click to play: https://tictactoewithafriend.netlify.app/
Bring a friend. Or play both sides yourself. We won’t judge. 😄
# 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 browserNo dependencies. Just open and play. 🎉
- 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. 🤝
Basic-Tic-Tac-Toe/
│── index.html # The UI layout
│── style.css # All styling & layout positioning
└── script.js # Game logic (the brain)
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.
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? 😏