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.
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.
- 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.
To run the Tic-Tac-Toe game locally, follow these steps:
-
Clone the repository:
git clone https://github.com/tal6203/Tic-Tac-Toe-Game.git cd Tic-Tac-Toe-Game/hw13/tic-tac-toe game
-
Open the
tictacgame.html
file: Opentictacgame.html
in your preferred web browser to start the game.
- Open the game in your web browser.
- Player 1 starts by clicking on an empty cell to place their mark (X).
- Player 2 then clicks on an empty cell to place their mark (O).
- 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.
- The game automatically resets after a win or draw, allowing you to play again.
You can play the game online via the following link: Tic-Tac-Toe Game
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is open-source and available under the MIT License.