A simple desktop Tic Tac Toe game built with Java and Swing.
-
2-player local gameplay
-
Win detection
-
Tie detection
-
Highlighted winning tiles
-
Play Again functionality
-
Desktop GUI built entirely with Swing
- Java
- Swing (Java GUI Toolkit)
- IntelliJ IDEA
You need Java installed on your system.
Check if Java is installed:
java -versionIf Java is not installed, download it from:
https://www.oracle.com/java/technologies/downloads/
Download the latest .jar file from the Releases section of this repository.
Example:
TicTacToe.jar
Double-click the .jar file.
If double-clicking does not work:
- Open Command Prompt
- Navigate to the folder containing the jar
- Run:
java -jar TicTacToe.jarDouble-click the .jar file. If double-clicking does not work 👇🏻
Open a terminal in the jar directory and run:
java -jar TicTacToe.jargit clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.git- Open IntelliJ
- Select "Open"
- Choose the project folder
Run the Main class.
Example:
