Tic-Tac-Toe is a simple two-player game where the goal is to be the first to get three of your symbols in a row, either horizontally, vertically, or diagonally on a 3x3 grid. This project implements the classic game with a straightforward user interface.
- Two-Player Mode: Play against a friend on the same device.
- Interactive UI: Click on the grid to place your symbol (X or O).
- Win Detection: The game automatically checks for a winner after each move.
- Restart Game: Reset the board at any time to start a new game.
- HTML: Markup for the structure of the game.
- CSS: Styling for the layout and appearance.
- JavaScript: Game logic, win detection, and interactivity.
Open the game in your web browser.
- Player 1 (X) clicks on a cell to place their symbol.
- Player 2 (O) then clicks on an empty cell to place their symbol.
- Continue taking turns until a player gets three symbols in a row or all cells are filled (resulting in a draw).
- The game will announce the winner or if the game is a draw.
- To play again, click the "Restart" button.