This repository contains a simple implementation of the classic TicTacToe game using Java's JFrame library. The game allows two players to play against each other on a graphical user interface.
- Clone or download the repository to your local machine.
- Make sure you have Java Development Kit (JDK) installed.
To compile the Java source code, navigate to the root directory of the project using the terminal or command prompt, and then use the javac command:
javac -d bin .\src\TicTacToe.java
After compiling the source code, you can create a JAR file to distribute the game. Use the jar command as follows:
jar cf .\build\TicTacToe.jar .\bin\TicTacToe.class
To run the TicTacToe game, use the following command:
java -jar .\build\TicTacToe.jar
The GUI of the TicTacToe game will appear on the screen, and you can set the board size as per your preferences through the input text boxes.
- Graphical user interface using Java's JFrame.
- Simple and intuitive design for a smooth gaming experience.
- Two-player mode for playing against friends or family.
Feel free to explore the code and modify it as per your requirements. If you encounter any issues or have suggestions for improvement, please create an issue or submit a pull request. Enjoy playing TicTacToe!