Short Explanation
Tic Tac Toe is a classic two-player game where X and O take turns marking spaces in a 3x3 grid. I built this in Java using Object-Oriented Programming (OOP).
The game uses classes to organize logic, making the code modular. Each player is an object, and the grid is stored in a 2D array. I implemented methods to handle moves, check for wins, and determine game outcomes.
Project Goals
The goal was to build a Tic Tac Toe game in Java with different modes: single player, two players, and player vs CPU. The app also saves scores during the session. This project helped me practice OOP concepts.
Framework & Dependencies & Tools
- Java
- Java Swing GUI
- Eclipse IDE
Lesson Learned
I learned a lot about OOP principles in Java. I also explored Java Swing for creating the GUI, including buttons, labels, and dialog boxes.
This project was fun and educational. Combining OOP with GUI development gave me a good understanding of software design.
Appreciation Section
Before closing this article, I would like to thank all members of the BME Membara Teams especially Bill Harit who have worked with me for about 1 months to make this game. I hope we can continue this collaboration to develop another wonderful application in the future.
