This is a Tic-Tac-Toe web application created as a project for The Odin Project, designed to be played in your web browser. The game allows two players to take turns, and the first player to align three of their symbols in a row (horizontally, vertically, or diagonally) wins the game. If all the squares are filled, and no player has won, the game ends in a tie.
- Open the
index.html
file in your web browser. - You will see a 3x3 grid representing the Tic-Tac-Toe board.
- Player 1 is represented by "X," and Player 2 is represented by "O."
- Players take turns clicking on empty squares to place their symbol on the board.
- The first player to align three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
- If all squares are filled, and no player has won, the game ends in a tie.