CSCI 310 Software Engineering Fall 2026 Project 1 Answered – Android Minesweeper App in Java

$80.00

This downloadable ZIP file covers an Android Studio Minesweeper game project using Java, featuring a 10×10 grid, randomized mine placement, digging and flagging modes, adjacent mine counting, recursive cell revealing, and gameplay timing. It also addresses win/loss detection, results screens, restarting, and GitHub version control.

Original Work ?

Download Details:

  • Name: Minesweeper-hs8fcq.zip
  • Type: zip
  • Size: 13.80 MB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

CSCI 310 Software Engineering Fall 2026 Project 1 focuses on developing a Minesweeper Android application using Android Studio and Java. Students implement a 10×10 game grid, randomized mine placement, digging and flagging controls, adjacent mine calculations, recursive cell revealing, gameplay timers, win/loss detection, and result screens while practicing GitHub version control.

Assignment Description

Overview: Since the upcoming team project will require you and your teammates to work together
and develop an Android application based on the requirements of a customer, it is time to get
yourself prepared now, by learning how to use Android Studio to develop a mobile application.
Objective: The objective of this project is to ensure that everyone in this class knows how to use
Android Studio to develop simple Android applications before the team project starts.
Detailed Description: First, you must download Android Studio on your own computer, set up the
development environment, and get familiar with the development environment.
• The recommended version is Android Studio 2026, and the Android Virtual Device (AVD) is
“Pixel 4” with “API 33 (Tiramisu); Android 13.0” and “Google APIs” Services.
Next, you must use Android Studio to write a simple Android app named “Minesweeper.”
• Minesweeper is a logic puzzle video game. If you are not familiar with it, please take a look
at Google’s implementation (https://www.google.com/fbx?fbx=minesweeper).
• Your Android app should mimic Google’s implementation to the extent possible.
Specifically, your Android app must have two pages: a landing page and a result page.
• The landing page must have a 10-by-10 grid of cells. Above this grid, there is a count of notyet-flagged mines on the left, and a count of elapsed seconds on the right. Below this grid is
an icon (digging or flagging) that can be tapped to change the mode of playing.
• After the game is over, tapping on any of the cells in the grid will bring the app to the result
page, which must have the number of seconds used, the result (won/lost), and a button.
After the button is tapped, the application returns to the landing page.
Below are two examples of the landing page (left and middle) and the result page (right).

The app name filed must have “CS310” and “your name” (i.e., your USC email) but the background
color doesn’t have to be purple and the text doesn’t have to be right-aligned.
2
Your Android app must have the following functionalities:
• Being able to randomly place 6 mines in the grid at the start of each game
• Allowing the user to place flags on the not-yet-revealed cells
• Allowing the user to reveal cells by clicking on them
• Reporting the game result correctly (win/loss and the time used)
• If the user reveals a cell that does not have a mine, the total number of mines in its adjacent
cells (i.e., the number of adjacent mines) must be displayed inside the revealed cell
• After a cell is revealed, if the number of adjacent mines is 0, your app must transitively
reveal all the adjacent cells as well
Since all the above functionalities (and more) are present in Google’s implementation, you should
study and mimic it (https://www.google.com/fbx?fbx=minesweeper) to the extent possible.
In addition, during the development, you must use GitHub for version control. If you do not yet have
a free GitHub account, please sign up for one. After that, please do the following:
• You must share your project on GitHub, but make it a “private” repository, so only you can
access it. To accomplish this, inside Android Studio, click the menu “VCS/Git => GitHub =>
Share Project on GitHub” – see the screen shot below (left) for an example.
• You must also commit your code changes to GitHub often and write meaningful commit
messages to go with these commits. The teaching staff will grade your use of Git by clicking
the menu “VCS/Git => Show Git Log”, which displays the history of your commits – see the
screen shot below (right) for an example.

What to hand in: You must submit two files to the course website on Brightspace:
(1) a short video demonstration of the features that you have implemented, and
(2) a (single) ZIP file of your entire project directory.
We will grade you based on the short video by comparing your demonstrated features against the
required features. When in doubt, we may look at your source code. Therefore, you must submit
both the demo video and the project ZIP file.
More on the demo video: You may submit a plaintext file containing the cloud link (URL) of your
demo video, for example, if you create the video using Zoom screen recording. You may also submit
the demo video itself as a file.
3
Grading: The project will be graded out of a maximum of 100 points:
• 20 points will be based on whether your code compiles (warnings are allowed by errors are
not allowed). If there are compilation errors, you will get 0 of the 20 points.
• 30 points will be based on whether your app’s layout, after being launched successfully on
the AVD, satisfies the requirement (having a landing page and a result page, with a 10-by10 grid, counts, digging/flagging icon, “CS310” label, and your name);
• 40 points will be based on whether functionalities of the game are implemented correctly:
o If there are defects in the video game, points will be deducted accordingly.
o For example, the flag count and elapsed seconds must be correctly computed; the
number of adjacent mines must be correctly computed; and when a cell with no
adjacent mine is tapped, the adjacent cells must be revealed transitively, etc.
• 10 points will be based on whether you have used Git properly.
o If you have not used Git at all during the development, you will get 0 points.
o You must have at least five (5) Git commits. If you don’t have at least five commits,
points will be deducted.
o You must write commit messages for all commits. If you don’t, points will be
deducted.
Suggestion: You may clone the repository of “Example App 5 (Grid Layout)” and use it as the starter
code for your implementation of the MineSweeper app. Please feel free to also reuse the code from
“Example App 4 (Stop Watch)” and “Example App 3 (Send Message)”.
Honor Code: You must work independently on this assignment. Please review the related
statement in the syllabus.
If you have Android coding related issues, please ask any of the TAs for help.
Please start working on the project early, to get an estimate on how long it will take you to finish it.
Don’t wait for the last minute to get help from the TAs!
Detailed Specification of the Demo Video: Please see the next page.
4
Project 1 (Minesweeper) Demo Video Specification
General Requirements
• The demo video must be a screen recording of the Minesweeper app running from
Android Studio.
• The student must provide a verbal explanation during the recording that clearly
describes their actions (e.g., clicks, flagging, digging) and the corresponding screen
output. The narration should make it unambiguous what feature or behavior is being
demonstrated.
• If the app cannot run or is partially implemented, the student must still record themselves
walking through the app as well as layout XML file(s) and the Java code, to give a sense
of how much progress was made. Partial credit will be awarded accordingly.
• We recommend students to use Zoom screen recording and share the cloud link
(URL) with us on submission. Alternatively, students can use applications like
QuickTime Player for screen recording.
Required Demonstrations
1. Git Usage
• Navigate to Git > Show Git Log.
• Show at least the required number of meaningful commits.
2. Game Mechanics Demonstration
• Basic Win/Lose Conditions
o Winning Condition: Show that the game can be won by revealing all safe cells
without clicking on a mine.
o Losing Condition: Show that clicking on a mine cell results in a loss.
• Flagging Behavior
o Demonstrate placing a flag on a cell.
o Demonstrate removing (unflagging) a flag from a cell.
o Attempt to flag more than the available number of mines (e.g., more than 4 if
there are only 5 mines) – show that the counter can go negative.
o Attempt to dig a flagged cell – show that it is not allowed.
o Attempt to dig near a flagged cell – show that the flagged cell remains hidden.
• End-of-Game Behavior
o Show that when the game ends (win or loss), all cells are revealed.
o Show that the game requires the player to click one final cell (i.e., waits) before
transitioning to the results page.
3. Timer
• Show the countdown timer running during gameplay.
• Demonstrate that the timer behaves correctly for both win and lose conditions.
4. Results & Restart
• Show that after a game ends (win or lose), a results page is displayed.
• Verify that the Play Again button works correctly and starts a new game.
5
Common Errors to Avoid
1. Gameplay & Mechanics
• Digging/Flagging
o Ensure that both digging and flagging modes are implemented and working.
o Use the correct icons for digging and flagging.
o Verify that flagging/unflagging is always allowed (counter can go negative,
unflagging works).
o Make sure flagged cells cannot be dug, and revealed cells cannot be flagged.
o Do not start the game in “flag mode” automatically.
• Win/Lose Conditions
o Confirm that the win condition is correct (all non-mine cells revealed).
o Confirm that the lose condition is correct (clicking on a mine ends the game).
o Avoid issues such as all cells revealing on the first click, or incorrect win
detection.
• End-of-Game Behavior
o The game must reveal all cells after win or loss.
o The app must wait for an extra user click before transitioning to the results page.
o Do not create a separate button to transition to results.
• Timer
o Timer must display correctly during the game.
o Timer must stop once the game ends (win or lose).
o Results page must display the correct elapsed time.
2. Layout & UI
• Verify that the main grid appears and is properly aligned (no overlap or cutoff).
• Ensure the layout scales dynamically across devices (no broken constraints).
• Show flag count, timer, and icons in their correct positions.
• Include your name at the top of the app UI.
3. Git Usage
• Show at least the required number of meaningful commits.
• Avoid missing Git entirely or providing meaningless commit messages.
4. Stability
• The app must compile correctly and run in Android Studio without crashes.
• Avoid hacks such as deleting lines of code just to run in the middle of your demo.
• The game should not crash during digging, flagging, or transitioning to results.

Solution Overview

The project covers Android Minesweeper development with six randomly placed mines, a 10×10 grid, flagging controls, recursive safe-cell revealing, and accurate win/loss detection. It also addresses elapsed-time tracking, results navigation, game restarting, Git commits, and demonstration requirements.