This repository hosts a simple Tic Tac Toe Game implemented using HTML, CSS, and JavaScript. The Game allows two players to compete against each other on a 3x3 grid, taking turns to place their respective symbols ("X" or "O"). The objective is to create a winning pattern of three symbols in a row, column or diagonal.
Key Features:
- Interactive Gameplay: Players can click on the grid cells to place their symbols, with the Game updating in real-time after each move.
- Win Detection: The Game engine detects winning patterns and declares the winner when a player achieves three symbols in a row, column, or diagonal.
- Draw Detection: If all grid cells are filled without any player achieving a winning pattern, the Game declares a draw.
- Reset Option: Players have the ability to reset the Game board and start a new Game at any point.
- Responsive Design: The Game interface is designed to adapt to different screen sizes, ensuring a consistent experience across devices.
Technologies Used:
- HTML: Provides the structure for the Game interface and grid layout.
- CSS: Styles the Game elements, including colors, fonts, and layout.
- JavaScript: Implements the Game logic, including player turns, win detection, draw detection, and Game reset functionality.
Clone the repository to your local machine using git clone. Open the index.html file in your web browser. Players can take turns clicking on the grid cells to place their symbols. The Game will automatically detect winning patterns or a draw.
Why Use:
- Learning Purposes: This project serves as a beginner-friendly example for learning front-end web development concepts, including HTML, CSS, and JavaScript.
- Customization: Developers can customize and expand upon the codebase to add new features or modify the Game's appearance.
- Community Contributions: Contributions from the open-source community are welcomed, whether it's fixing bugs, adding features, or improving documentation.
Contributions are encouraged! Feel free to open an issue or submit a pull request for any enhancements or fixes you'd like to contribute.
Author:
[Saksham Singh Rathore/[https://github.com/saksham-1304] - [[email protected]]