|
MineSweeper
|
|
Instructions
The purpose of the game is to open all the cells of the board
that do not contain a bomb. You lose if you set off a bomb cell.
Every non-bomb cell you open will tell you the total number of
bombs in the eight neighboring cells. Once you are sure that a
cell contains a bomb, you can right-click to put a flag it on it
as a reminder. After you have flagged all the bombs around an
open cell, you can quickly open the remaining non-bomb cells by
shift-clicking on the cell.
To start a new game (abandoning the current one), just click
on the yellow face button.
Happy mine hunting!
History
I originally wrote a prototype of this program during a
weekend as sample code to show at a job interview. The interview
didn't work out (selfish shameless plug: if you're hiring, please
take a look at my resume), but
something good came from it: MineSweeper! It took me another
couple of weeks of work to complete/debug it, and here it is.
MineSweeper was/is, in the author's intentions (that would be
me), a Java standalone application, from which the applet you see
was obtained by removing all that functionality that did not
comply to the applet security restrictions. If you like the
applet, consider downloading and/or setting up the Java Runtime
Environment (JRE) in your computer, in order to run MineSweeper
in all its glory. You don't need the entire Java Developers Kit
(JDK), as you can find a compiled version of the standalone
application included in the source code downloadable from this
page.
Copyright notices
I have to give credit where credit is due: most (all?) of the
graphics and user interface conventions are the same as the
original Windows version, and therefore copyrighted by Robert
Donner and Curt Johnson, Microsoft Corporation.
All the source code, however, is (unless clearly stated
otherwise) intellectual property of Roberto Virga, Carnegie
Mellon University.
Please notify me if
you're going to use part of the MineSweeper source and/or
bytecode in your {applet, application, web page, whatever}.
Sources