Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 2.28 KB

README.md

File metadata and controls

71 lines (43 loc) · 2.28 KB

🎮 Tic-Tac-Toe Game

Welcome to the Tic-Tac-Toe Game repository! This project is a simple implementation of the classic Tic-Tac-Toe game using HTML, CSS, and JavaScript.

Table of Contents

📝 Overview

This project is a web-based Tic-Tac-Toe game where two players can play against each other. The game has a simple and intuitive interface, making it easy for anyone to play.

✨ Features

  • Two Player Mode: Play against another player on the same device.
  • Responsive Design: The game is responsive and works on different screen sizes.
  • Simple UI: Easy to use interface with a clean design.

🔧 Setup

To run the Tic-Tac-Toe game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/tal6203/Tic-Tac-Toe-Game.git
    cd Tic-Tac-Toe-Game/hw13/tic-tac-toe game
  2. Open the tictacgame.html file: Open tictacgame.html in your preferred web browser to start the game.

🎮 How to Play

  1. Open the game in your web browser.
  2. Player 1 starts by clicking on an empty cell to place their mark (X).
  3. Player 2 then clicks on an empty cell to place their mark (O).
  4. Players take turns until one player gets three of their marks in a row (horizontally, vertically, or diagonally) or all cells are filled without a winner, resulting in a draw.
  5. The game automatically resets after a win or draw, allowing you to play again.

🚀 Deployment

You can play the game online via the following link: Tic-Tac-Toe Game

🤝 Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a Pull Request.

📜 License

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

Tic-Tac-Toe.mp4