A modern Minesweeper game built using Jetpack Compose, featuring an intuitive UI, dynamic backgrounds, and immersive gameplay.
🎮 Classic Minesweeper Gameplay – Tap to reveal, long press to flag mines.
🎨 Dynamic Background Changes – Visual updates based on game state (win/lose).
🔔 Toasts Notifications – Informative pop-ups for game events.
🎵 Background Music – Adds an immersive experience.
🛠 Jetpack Compose UI – Modern and responsive design.
💣 3 levels of difficulty: Easy, Medium, Hard
-
Easy: 8 Mines over 9x9 Grid.
-
Medium: 16 Mines over 9x9 Grid.
-
Hard: 24 Mines over 9x9 Grid.
Clone the repository:
git clone https://github.com/yourusername/minesweeper-compose.git
Open the project in Android Studio.
Connect a device or use an emulator.
Click Run ▶ to build and launch the app.
-
Select a difficulty level and hit "Confirm Selection" to apply the difficult level.
-
Tap on a tile to reveal it.
-
Switch to "Flag Mode" by pressing the button "Check Mode" and press that button again to switch back to "Check Mode."
-
In "Flag Mode," tap on a tile to flag it and tap again to unflag.
-
Win by flagging all mines or lose if you tap on a mine.
Jetpack Compose – Declarative UI framework
Kotlin – Primary programming language
Material 3 – UI components and styling
Feel free to submit pull requests or report issues in the repository.
Enjoy playing Minesweeper! 💣🎉


