This game features a classic 3x3 Tic Tac Toe board. The user starts by selecting their symbol, either X or O, while the computer automatically takes the other symbol. Once the symbol is chosen, the game board is displayed, and the user always makes the first move. The game alternates between the user and the computer until one player wins or the game ends in a draw. The result is displayed, and the user can choose to play again.
- Symbol Selection: The user selects either X or O, and the computer takes the remaining symbol.
- Turn Indicator: Displays whose turn it is, with a background change to indicate the active player.
- Interactive Gameplay: A 3x3 grid where the user and computer take turns placing their symbols, with logic to prevent repeated moves in the same square.
- Win Detection: The game detects when a player wins or if the game ends in a draw and displays the result.
- Replay Option: After a game concludes, the user can replay with the same interface.
- HTML: For the structure and layout of the game.
- Tailwind CSS: For styling and responsive design.
- TypeScript: For game logic and functionality.