Back to Projects
Minesweeper Game (BombSweeper)

Minesweeper Game (BombSweeper)

BombSweeper is a desktop-based Minesweeper clone developed in Java, designed to demonstrate strong fundamentals in object-oriented programming, recursion, and GUI development. The game faithfully recreates classic Minesweeper mechanics: - Bomb detection - Numbered hints - Automatic flood-fill revealing of empty spaces The application uses a 50×50 interactive grid (2,500 clickable squares) implemented with Java Swing, where each square responds to user input through an event-driven architecture. A recursive flood-fill algorithm is used to automatically reveal connected safe areas when a square with zero adjacent bombs is clicked, requiring careful state tracking to prevent infinite recursion. The project emphasizes clean architecture and separation of concerns. An abstract base class defines common behavior for grid squares, while concrete implementations handle bomb logic and recursive reveal behavior. The grid itself is managed independently by a board controller, making the system scalable and easy to extend with features such as flags, timers, or difficulty levels. This project highlights practical problem-solving with algorithms, real-world use of recursion, and clean OOP design patterns in a graphical application.

Technologies Used

JavaJava SwingObject-Oriented Programming