Overview:
This is a classic Tic Tac Toe game built using HTML, CSS, and JavaScript, designed for two players to take turns marking spaces in a 3x3 grid. The goal is to get three marks in a row—horizontally, vertically, or diagonally—before the opponent does.
Features:
- Dynamic win detection logic to highlight the winner's row.
- Reset functionality to start a new game without reloading the page.
- Simple yet engaging user interface with CSS styling.
Technologies Used:
- HTML: For the structure of the game board and layout.
- CSS: For styling and enhancing the visual appearance of the game.
- JavaScript: For game logic, including player turns, win detection, and board reset.
How to Play:
- Open the game in your browser.
- Players take turns clicking on empty spaces in the grid.
- The first player to align three marks wins! If all spaces are filled without a winner, the game ends in a draw.
Screenshots: