Skip to content

floydrise/java-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe (Java Swing)

A simple desktop Tic Tac Toe game built with Java and Swing.

Features

  • 2-player local gameplay

  • Win detection

  • Tie detection

  • Highlighted winning tiles

  • Play Again functionality

  • Desktop GUI built entirely with Swing

Technologies Used

  • Java
  • Swing (Java GUI Toolkit)
  • IntelliJ IDEA

Running the Application

Option 1 — Run the Executable JAR (Recommended)

Requirements

You need Java installed on your system.

Check if Java is installed:

java -version

If Java is not installed, download it from:

https://www.oracle.com/java/technologies/downloads/


Download the JAR

Download the latest .jar file from the Releases section of this repository.

Example:

TicTacToe.jar

Run the Game

Windows

Double-click the .jar file.

If double-clicking does not work:

  1. Open Command Prompt
  2. Navigate to the folder containing the jar
  3. Run:
java -jar TicTacToe.jar

Linux / macOS

Double-click the .jar file. If double-clicking does not work 👇🏻

Open a terminal in the jar directory and run:

java -jar TicTacToe.jar

Running from Source

Clone the Repository

git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.git

Open in IntelliJ IDEA

  1. Open IntelliJ
  2. Select "Open"
  3. Choose the project folder

Run the Project

Run the Main class.


Screenshots

Example:

![Gameplay Screenshot](screenshots/Screenshot.png)

About

Small Tic Tac Toe game made with Java

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages