Tic Tac Toe – GUI-based Java Game
A classic Tic Tac Toe game built in Java using Swing and AWT. The game supports both single-player and two-player modes, with intuitive visual feedback and game status updates.
Features
- Graphical user interface built with Java Swing
- 1-player and 2-player modes
- Randomized starting player (in 2-player mode)
- Clear turn indicators and win/draw messages
- Visual highlight of winning combinations
- Reset functionality for replay
- Java
- Swing (GUI components)
- AWT (event handling and layout)
- Object-Oriented Programming
- Event-driven design
How to Run
- Clone the repository:
git clone https://github.com/alexandranimhagen/TicTacToeGame.git
Open the project in your preferred Java IDE (e.g., IntelliJ, Eclipse)
Run TicTacToeGame.java as a Java Application
What I Learned This project demonstrates:
Structuring GUI-based applications using Swing
Handling user interactions with event listeners
Applying object-oriented principles in game logic
Managing game state and feedback in a clean, readable way
This project is part of my Java developer training and showcases my understanding of interactive application development in Java.