A simple and fun Tic Tac Toe game built using HTML, CSS, and JavaScript.
Play with a friend and see who wins — ❌ or ⭕!
- Two-player mode
- Detects winner and draw
- Simple and responsive UI
- Game restart option
- Smooth user interaction
| Technology | Purpose |
|---|---|
| HTML | Structure of the game UI |
| CSS | Styling and layout |
| JavaScript | Game logic and interactions |
-
Clone the repository:
git clone https://github.com/letDiyaCode/Tic-Tac-Toe
-
Open index.html in any modern web browser.
-
Player 1 plays as ⭕ and Player 2 plays as ❌.
-
Players take turns clicking on empty squares to place their mark.
-
The game automatically announces the winner or declares a draw.
-
Click New Game to reset the board and start a new match.