A minimalistic Tic Tac Toe game built with vanilla JavaScript.
-
Clone the repository
git clone https://github.com/Harmit3/Tic-Tac-Toe.git cd Tic-Tac-Toe -
Open in browser
- Double-click
index.htmlOR - Run on localhost
- Double-click
-
Play the game
- Open
http://localhost:3000in your browser - Click on cells to place X and O
- First to get 3 in a row wins!
- Open
- Two-player local gameplay
- Win detection
- Draw game handling
- Clean, minimal UI
- No dependencies
- HTML5
- CSS3
- JavaScript (ES6+)
index.html- Game interfacescript.js- Game logic
Enjoy the game! ๐ฎ