Tic-Tac-Toe is a classic two-player game built using HTML, CSS, and JavaScript. It provides a simple and fun way to play the popular game on your web browser. Challenge a friend and see who can get three in a row!
Include a GIF or screenshot of your game in action to give users a visual preview of what they can expect.
- Classic Tic-Tac-Toe gameplay.
- Turn-based play, with "X" and "O" markers.
- Dynamic player status display.
- Game over messages for wins and draws.
- Restart functionality to play again.
- Responsive design for various screen sizes.
- Open the game in your web browser.
- The game starts with "X" as the first player.
- Click on an empty cell to make your move.
- Alternate turns with your opponent.
- The first player to get three in a row (horizontally, vertically, or diagonally) wins.
- If all cells are filled and no player wins, the game ends in a draw.
- Clone the repository to your local machine using the following command:
- Navigate to the project directory:
- Open the
index.html
file in your web browser to start playing.
You can play the game live by visiting the following link: Play Tic-Tac-Toe
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Clone the forked repository to your local machine.
- Create a new branch for your feature (
git checkout -b feature-name
). - Make your changes and commit them (
git commit -m 'Add feature'
). - Push to your branch (
git push origin feature-name
). - Open a pull request.
Please make sure to follow the code of conduct and the contributing guidelines when submitting contributions.
This project is licensed under the MIT License.
Feel free to customize this README template further if needed. The live link to your app has been added under the "Live App" section, making it easy for users to access your game.