A Java desktop application for playing the classic game of Tic-Tac-Toe. The application allows you to play against the computer, against another human player, or even watch the computer play against itself. It is built using Java Swing with JDK 17.
- Play against the computer: Challenge the computer and test your Tic-Tac-Toe skills.
- Play against another human player: Enjoy the game with a friend or family member.
- Watch the computer play against itself: Observe the computer playing both X and O positions.
- Easy-to-use graphical interface: The game board and controls are displayed using Java Swing components.
To get a local copy of the project up and running on your machine, follow these steps:
- Java Development Kit (JDK) 17 or higher
- Git
- Clone the repository:
git clone https://github.com/Aeronaul/Tictactoe_Java.git
cd Tictactoe_Java/src
- Compile the Java source files:
javac tictactoe/*.java
- Run the application:
java tictactoe.ApplicationRunner
- Launch the application by running the TicTacToe class.
- Choose the game mode: "Player vs. Computer," "Player vs. Player," or "Computer vs. Computer."
- Click on the empty cells of the game board to make your moves.
- The game will indicate the winner or a draw when the game ends.
- To start a new game, click on the "Reset/Start" button.
The Java programming language and Java Swing library.
For any questions or inquiries, please contact me at: [email protected].
