Report as inappropriate.
Minesweeper in greenfoot!
I was going to enter this into the intermediate June contest, but I've ran out of time, and I couldn't figure out how to correctly implement changing the worlds size for new levels without causing errors, scrollbars, etc. Enjoy the most of the game I got done anyways!
If you want to play your own custom levels, download the scenario, then right click the Minesweep world class, then click "new Minesweep(int size, int mines)" which creates a square world, or "new Minesweep(int width, int height, int mines)" which creates a rectangle world. The default constructor creates the world you see on the site.
Left click: Reveal underneath the tile
Right click: Place a flag or a question mark to mark areas you think may have a bomb (if it has a flag you won't be able to reveal it until you remove the flag)
Press "R" to restart the world if you lost or won.
Reveal every tile but the ones with mines, if you hit a mine, you will explode! The numbers that are revealed underneath tiles tell you how many mines are around it, to the sides, and diagonally.
5767 views / 1227 in the last 7 days
1 vote | 0 in the last 7 days
This scenario is a member of: Reusable Code from FRUP
Want to leave a comment? You must first log in.