This is a simple web-based Tic-Tac-Toe game. The game allows two players to play Tic-Tac-Toe on a 3x3 grid. It is a great way to practice your JavaScript skills and understand the basics of game development.
- HTML5: For creating the structure of the game.
- CSS3: For styling the game.
- JavaScript: For game logic and interaction.
- Two-player mode.
- Interactive UI with real-time game updates.
- Highlighting the winning combination.
- Option to reset the game.
- HTML Structure: The HTML file contains a 3x3 grid representing the Tic-Tac-Toe board. Each cell is a clickable element.
- CSS Styling: The CSS file styles the board and the cells, making the game visually appealing.
- JavaScript Logic: The JavaScript file contains the game logic, including:
- Tracking the current player.
- Handling cell clicks and updating the game state.
- Checking for a win or draw condition.
- Resetting the game.
- Open the game in a web browser.
- Two players can click on the cells to place their marks (X or O).
- The game will highlight the winning combination if there is a winner.
- Click the reset button to start a new game.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.