This is a simple Tic-Tac-Toe game implemented using HTML, CSS, and JavaScript. The game features a clean and modern interface, allowing two players to compete against each other on the same device. The game keeps track of wins, losses, and ties for each player.
- Two-player gameplay
- Score tracking for both players (wins, losses, ties)
- Reset button to restart the game
- Modern and responsive design
To run this game locally, follow these steps:
-
Clone the repository:
git clone https://github.com/curiousbud/Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript.git
-
Navigate to the project directory:
cd Tic-Tac-Toe-game-with-HTML-CSS-and-JavaScript
-
Open the
index.html
file in your web browser to start the game.
- Open the
index.html
file in your web browser. - The game will display an empty Tic-Tac-Toe grid.
- Player 1 starts with "O" and Player 2 with "X".
- Players take turns clicking on the grid to place their marks.
- The game will automatically detect and display the winner or if the game ends in a tie.
- Use the "Reset" button to start a new game.
Contributions are welcome! If you have any suggestions or improvements, please create a pull request or open an issue.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or feedback, feel free to contact me.
- GitHub: curiousbud