A classic Tic-Tac-Toe game built with Java Swing, providing a fun and simple way to play the timeless game with a clean graphical interface.
A Tic-Tac-Toe game built using Java Swing, allowing two players to compete in this classic game, taking turns to place 'X' or 'O' on the board.
- ✖️ Two-player gameplay: Play as 'X' or 'O' with a friend.
- 🎨 Graphical User Interface (GUI): Clean and interactive design using Java Swing.
- 🧠 Win-checking logic: Automatically detects when a player wins or if the game results in a draw.
- 🔄 Restart option: Reset the game board for a new match.
git clone https://github.com/DikshitaDas/TicTacToe.git
cd TicTacToe
javac TicTacToe.java
java TicTacToe
Technology | Logo |
---|---|
Java | |
Swing |
Contributions are welcome! Here's how you can contribute:
- Fork the repository 🍴
- Create a new branch (
git checkout -b feature/amazing-feature
) 🚧 - Commit your changes (
git commit -m 'Add a new feature'
) 📝 - Push to the branch (
git push origin feature/amazing-feature
) 📤 - Open a pull request 📬
This project is licensed under the MIT License. See the LICENSE file for more details. 📃