A simple yet engaging Tic Tac Toe game developed using HTML, CSS, and JavaScript. Test your skills against another player or enjoy the classic game with an interactive design.
- Two-player functionality: Play with a friend.
- Turn indicator: Displays whose turn it is with a dynamic highlight.
- Win detection: Announces the winner with a highlighted winning combination.
- Draw detection: Declares a draw when the board is full.
- Reset Button: Reset the board at any time to start fresh.
- Play Again Button: Replay after a win or draw without reloading.
├── index.html # Core HTML file
├── style.css # Stylesheet for the game
├── script.js # JavaScript for game logic
├── preview.png # Game preview image
- Clone the repository:
git clone https://github.com/Kamran-frontend/Tic-Tac-Toe.git
- Navigate to the project folder:
cd Tic-Tac-Toe
- Open the
index.html
file in your browser. - Players take turns clicking on the board to place their marker (X or O).
- The game will automatically detect wins or draws and display the result.
- Use the Play Again button to restart or the Reset button to clear the board.
- HTML5: For the structure.
- CSS3: For styling and responsiveness.
- JavaScript (ES6): For game functionality and interactivity.
Click the image below to view a full preview:
- Add a single-player mode with AI.
- Implement customizable themes or skins.
- Add sound effects and animations for a richer experience.
- Track scores across multiple rounds.
This project is open-source and available under the MIT License.
Contributions are welcome! If you have ideas for improvement, feel free to fork the repository, submit an issue, or create a pull request.