A simple web-based Tic Tac Toe game using HTML, CSS, and JavaScript.
- Two players take turns marking the spaces in a 3×3 grid.
- Player 1 is X and Player 2 is O.
- The first player to get 3 of their marks in a row (vertically, horizontally, or diagonally) wins.
- If all 9 boxes are filled and no player has won, it's a draw.
- HTML – Structure of the game
- CSS – Styling and layout
- JavaScript – Game logic and interactivity
index.html
– Structure of the game boardstyle.css
– Visual design and layoutapp.js
– Handles the game logic and turns
- Download or clone this repository.
- Open the
index.html
file in your web browser. - Start playing with a friend