JMine2 - Java Minesweeper

Your browser is completely ignoring the <APPLET> tag!
This applet requires a Java Plug-in for Java 1.3 or higher. Click here to obtain the latest plug-in if your browser fails to load the applet (this applies to new browsers too).

Trouble with the Applet?
Wait for all the images to load. In the status bar of your browser you should see
Loading images: **/** (**.gif)

What is JMine2?

JMine2 is port to Java of the popular Windows game Minesweeper (or Winmine) - with a facelift and some new features. First, here's an overview of the new features for those already familiar with the game. If you'd like to learn how to play Minesweeper, scroll down to find general instructions.

Options (the new stuff)

There is a list of buttons in a blue box at the top. Click on the Options button to see a list of options in JMine2. You can return to your game by clicking on the Game button when it appears. Here is a list of options:

Easy Sweeper
This feature allows a deterministic game of Minesweeper (solvable in polynomial time). That is, you'll never have to guess! Basically, the computer will cheat for you if/when things get too hard, by revealing new numbers and/or flagging some hidden mines. If, for every cell on the board, you would have to look beyond its immediate neighbors to determine your next move, Easy Sweeper will solve tiny pieces of the board until you have an easier option - a cell that can be deduced to be a mine/not a mine based on its immediate neighbors.

Note that to use this feature, you must flag mines as you deduce their locations.

Auto Flag
If this feature is enabled, the game will automatically flag all cells that can be easily deduced to be mines (ie. by looking at immediate neighbors) as you play the game. You can still flag and unflag mines yourself, of course.

Auto Click
If this feature is enabled, the game will automatically reveal all cells that can be easily deduced not to be mines. Since this feature only works according to which cells you have flagged as mines, you still have to do some work.

Auto Strip
As you play the game, there are some areas of the board that you will never return to - these areas have been completely revealed and flagged. If Auto Strip is enabled, the game will "clean up" these areas of the map once you're done with them. The game ends with an empty board. Since this feature doesn't really provide you with any new information about the locations of the mines, it doesn't really make the game too much easier. However, you'll likely never have to count higher than 3 or 4, so that can make it a bit simpler.

Note that to use this features, you must flag mines as you deduce their locations.

Manual Strip
This allows you to manually clean up finished areas of the map. Left-click on a flagged cell. If all of it's neighbors are flagged or revealed, this mine will be "stripped away." Note, however, that if Auto Strip is enablede you will not be able to use this feature (since Auto Strip will leave nothing for you to manually strip out).

Note that to use this feature, you must flag mines as you deduce their locations.

Using any of the above features will not allow you to log a highscore (as soon as I get that feature enabled...)

Quotation Mark
As an alternative to "flagging," you can mark suspected mines with a quotation mark by right-click (twice). The mine will not be regarded as flagged, but you will still have some visual indicator that it is probably a mine. (This was originally in Windows Minesweeper too).

JMine2 is skinable. You can change to look of Minesweeper by choosing a skin from the list. If you feel more comfortable playing a version that models the look of the Windows 2000 or Windows 95 versions of Minesweeper, choose them from the list. Click on the Game button to see the new skin. Expect this list to grow.

You can change any of these options without restarting the board you are currently solving. The timer, however, will keep on ticking....

Changing the Difficulty

The Options panel also allows you to change the difficulty of the game by resizing the board and/or changing the number of hidden mines. You can select from some of the predefined boards (Beginner, Intermediate, Expert), or you can create on of your own Custom board. Note that you cannot receive a highscore for a custom board.

The objective is to find all of the mines without uncovering any in the quickest time possible. Although it is not necessary, the game is best played with a mouse having 2 or more buttons. A quick note on using a mouse:

The Mouse
  • If your mouse has only one button, hold down the Command key on your keyboard to emulate a right-click. You will not be able to perform a two button click (not that I know of).
  • If your mouse has two buttons, you are a little better off. You can left click, right click, and two button click (pressing down both buttons at once).
  • If your mouse has 3 buttons or more, assume button 1 to be a left click, button 3 to be a right click, and button 2 to be a two button click.
  • Lastly, if you are using a Mac, your mouse may interact differently with the applet (it's a Java bug on Macs). Basically, it will do a two-button click instead of a right click (or Command-click, if you have one button), and, if you have two or more buttons on your mouse, then it will also do a right click instead of a two-button click. That is, it flips buttons 2 and 3. If this happens to you (or you'd just like to flip those buttons), place a check in the Macintosh Mouse checkbox under the options menu and that should fix it.

Now, with that out of the way...

How to Play JMine

To start a new game, left click on the smiling face.

Left click on a tile to uncover it. After the first tile is uncovered, the timer is started.

If you uncover a mine, you lose. You cannot lose on the first click of the game.

If a square displays a number, that number represents the number of mines directly adjacent to that square (a maximum of 8, a minimum of zero). Use these numbers to determine where you think a mine might be located.

You can mark a tile as a mine by right clicking on it. A number at the top left keeps track of how many mines you have left to find.


If you are not sure if a tile covers a mine, but you think it may (for example, if two tiles are known to cover one mine), you may mark those tiles as questionable by right clicking twice on the mine. It will be marked with a question mark. Right click on the tile again to remove any markers.

If you have a mouse with more than two buttons, you can perform a two button click. If (1) The tile displays a number, (2) You have marked adjacent squares as mines, and (3) The total number of adjacents squares marked as mines equals the number displayed on the square, you may two button click on the numbered square to reveal all other hidden adjacent tiles. Be careful though. If you have incorrectly marked a tile as a mine, you will uncover a mine in one of the other squares.

If you like this game, why not try Yariv Hastilow's Nonosweeper.


JMine / Minesweeper has the potential to be addictive. If you feel yourself drawn away from the world around you, if you haven't been outdoors in a couple of days, if your only remaining objective in life is to beat a 150 second score on the expert level -- Stop! Take a deep breath, turn off your computer, and go outside.

Want to drop me a note? Do so: Send me an email!
<-- Back