A simple Tic-Tac-Toe game implemented in JavaScript, HTML, and CSS.
This project is a web-based Tic-Tac-Toe game where two players can play against each other. The game is implemented using JavaScript for the game logic, and HTML/CSS for the layout and styling.
- Two-player gameplay (Player X and Player O)
- Simple and intuitive user interface
- Detects win conditions and ties
- Responsive design
To run the game locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/tic-tac-toe-js.git
-
Navigate to the project directory:
cd tic-tac-toe-js
-
Open the
index.html
file in your preferred web browser:open index.html
To play the game, simply click on any cell in the grid to make a move. Players take turns clicking on empty cells to place their mark (X or O). The game will automatically detect when a player wins or if the game ends in a tie.
Contributions are welcome! If you have any ideas or improvements, feel free to open an issue or create a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/your-feature-name
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature-name
) - Open a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding!