Minesweeper Game in Gridworld

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
560 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 25, 2011

This is the finished product. Classic Minesweeper game I implemented from scratch using only the capabilities of Gridworld, the College Board's educational case study for the AP Computer Science A course. This program requires every single method found in the entire case study packet, and more, unmentioned ones such as locationClicked, keyPressed, and getImageSuffix. This program is NOT as easy as it may seem. I give you the code at the beginning of the video for the reason that you don't have to ask me how I did it.

In this video I skim through the code and then demonstrate a game. While yes, I did lose, that's not the point of the video. The hardest part of this program was to get the flags working properly. Aside from that, the recursive revealing of empty spaces wasn't easy and nor was fixing the game to make sure your first click can't lose.

I am considering adding a walkthrough of this program. Comment "Pink Sneasel" if you would like this.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • @Mindstormscreator Whatever number is displayed is how many bombs are immediately adjacent. The goal is to flag every bomb without flipping any over. Great addictive puzzle game but frustrating at first.

  • Uhh, um, uhhh... I don't even know how minesweeper works... haha.

    *cough* Pink Sneasel *cough*

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more