Skip to content

X and O with Java is a graphical Tic-Tac-Toe game built with Swing, featuring multiple screens, customizable settings, and fun music made by my dear friend tigeroffbtk .

License

Notifications You must be signed in to change notification settings

ALNezar/X-and-O-Retro-Java-Tic-Tac-Toe-Game

Repository files navigation

X-and-O (Tic-Tac-Toe)

image

❖ Goooood old Tic-Tac-Toe game made in Java!

ദ്ദി(˵ •̀ ᴗ - ˵ ) ✧

You can play against the computer [🤖] or another person.

The game has a Kool retro look with bright colors and easy menus. ENJOY ! :P


[ MUSIC & SOUND EFFECTS INCLUDED ]


FEATURES

▸ Play with a friend or against the computer

image


▸ Choose the board size (3x3 up to 6x6)

image


▸ See who’s winning and how much time has passed

image


▸ Restart the game or go back to the menu any time

image


HOW TO PLAY

image

▷ JUST CLICK THE Tic-tac-toe.JAR or Tic-tac-toe.EXE

image


1. JUST CLICK THE Tic-tac-toe.JAR!

OR

2. JUST CLICK THE Tic-tac-toe.EXE!


3. Download or clone this project:

git clone https://github.com/ALNezar/X-and-O.git
cd X-and-O

4. Run the game:

▸ If you use an IDE (like IntelliJ IDEA or Eclipse): Open the project and run Main.java directly. The IDE will automatically handle the necessary dependencies.

▸ If you use the command line:

For Windows:

javac -cp ".;sqlite-jdbc-3.27.2.1.jar" *.java
java -cp ".;sqlite-jdbc-3.27.2.1.jar" Main

For macOS/Linux:

javac -cp ".:sqlite-jdbc-3.27.2.1.jar" *.java
java -cp ".:sqlite-jdbc-3.27.2.1.jar" Main

FILES IN THIS PROJECT

  • Main.java – run de game!
  • TicTacToeApp.java – Manages the overall app and screens
  • GamePanel.java – The main game screen
  • WelcomePanel.java – The welcome and main menu
  • SettingsPanel.java – Handles game settings
  • Settings.java – Stores game settings in memory
  • resources/ – Contains game assets like audio files (.wav)
  • sqlite-jdbc-3.27.2.1.jar – The JDBC driver for SQLite database operations
  • settings.db – The SQLite database file (for persistent settings)

CREDITS

Soundtrack by TigerOffbtk Big thanks for creating the awesome soundtrack :)


LICENSE

This project is open source and free to use.


Made by ALNezar

About

X and O with Java is a graphical Tic-Tac-Toe game built with Swing, featuring multiple screens, customizable settings, and fun music made by my dear friend tigeroffbtk .

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages