This is a simple implementation of the classic Tic-Tac-Toe game. It allows two players to take turns marking spaces on a 3x3 grid with "X" and "O" until one player wins or the game ends in a draw.
- Two-player mode: Play with a friend on the same computer.
- Interactive grid: Click on the cells to make your move.
- Win detection: The game detects when a player has won and announces the winner.
- Draw detection: The game ends in a draw when there are no more empty cells.
- Restart option: Start a new game after the current one ends.
- Clone or download the repository to your local machine.
- Open the
index.html
file in a web browser. - Player 1 (X) goes first.
- Click on an empty cell to make your move.
- Alternate turns with your opponent.
- The game announces the winner or ends in a draw.