Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 2.27 KB

README.md

File metadata and controls

57 lines (46 loc) · 2.27 KB

Tic Tac Toe Game 🎮

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.

Preview

📜 Features

  • 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.

📂 Project Structure

├── index.html       # Core HTML file
├── style.css        # Stylesheet for the game
├── script.js        # JavaScript for game logic
├── preview.png      # Game preview image

🚀 How to Play

  1. Clone the repository:
    git clone https://github.com/Kamran-frontend/Tic-Tac-Toe.git
  2. Navigate to the project folder:
    cd Tic-Tac-Toe
  3. Open the index.html file in your browser.
  4. Players take turns clicking on the board to place their marker (X or O).
  5. The game will automatically detect wins or draws and display the result.
  6. Use the Play Again button to restart or the Reset button to clear the board.

🛠 Technologies Used

  • HTML5: For the structure.
  • CSS3: For styling and responsiveness.
  • JavaScript (ES6): For game functionality and interactivity.

🖥 Preview

Click the image below to view a full preview:

Preview

💡 Future Enhancements

  • 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.

📄 License

This project is open-source and available under the MIT License.

🤝 Contributions

Contributions are welcome! If you have ideas for improvement, feel free to fork the repository, submit an issue, or create a pull request.