Skip to content

Allisonmini/Tic-Tac-Toe-Game_Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tic Tac Toe - Java GUI Game βŒβ­•

A simple two-player Tic Tac Toe game with a graphical user interface using Java Swing.


Description

This project also started as a class exercise in my Computer Science course. My professor provided us with the basic logic in the terminal. I decided to go beyond that by building a full desktop GUI version using JFrame and Java Swing.

Players take turns placing their mark, the game automatically checks for a win or draw, and there’s a reset button to start over.


πŸ› οΈ Built With

  • Java SE
  • Java Swing (JFrame, JButton, JLabel)
  • IntelliJ IDEA

πŸ’» Features

  • Two-player gameplay
  • Win and draw detection
  • Reset button to restart
  • Clean and functional GUI
  • Object-Oriented Design

πŸ“ Files

  • MyTicTacToe.java – Builds the GUI and handles interactions
  • Main.java – Entry point to launch the game
  • TicTacToeGame.jar – Packaged runnable JAR version

πŸŽ₯ Demo

TicTacToeDemo.mov

πŸ’¬ Personal Note

This was a great way for me to apply what I learned in class and see how simple logic could become an actual app. Converting a console game into a GUI project made it more exciting and gave me hands-on experience with Java Swing.


πŸš€ How to Run

Make sure Java is installed on your system.

Run the JAR file with:

java -jar TicTacToeGame.jar

About

A simple 2-player Tic Tac Toe game in Java (console-based)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages