This is a simple implementation of the classic Tic Tac Toe game using HTML, CSS, and JavaScript. It allows two players to play against each other on a grid of 3x3 squares, taking turns to place their respective markers (X or O) until one player wins or the game ends in a draw.
Simple and intuitive user interface.
Two-player gameplay.
Real-time updates on the game status (e.g., whose turn it is, winner, draw).
Responsive design, playable on both desktop and mobile devices.
To play the game, simply open the index.html file in your web browser.
Alternatively, you can try the live demo hosted on Netlify using this link: https://sunny-dasik-0bb070.netlify.app/
If you'd like to contribute to this project, follow these steps:
-
Fork the repository by clicking the "Fork" button on the top-right corner of this page.
-
Clone your forked repository to your local machine: git clone https://github.com/1HashCode/tic-tac-toe.git
-
Create a new branch for your changes: git checkout -b feature/your-feature-name Make your changes to the codebase. Test your changes locally to ensure they work as expected.
-
Commit your changes with descriptive commit messages: git commit -m "Add feature: description of your changes"
-
Push your changes to your forked repository: git push origin feature/your-feature-name
Finally, open a pull request from your forked repository to the original repository. Provide a clear description of your changes in the pull request.
This project is licensed under the MIT License - see the LICENSE file for details.