WARNING: It wastes 4 or 5 seconds at the beginning of the first game to
get everything loaded and ready. Just restart it.
This is my java implementation of the classical Minesweeper game included
in all Windows
© systems. The main difference is that
my counters are green, while the original counters are read.
The purpose of the game is to identify mines without stepping on them. Their
number is shown in the top-left corner. When you click a cell, WebMines shows
you how many mines are in contact with the cell you have clicked
(between 1 and 8). If there are no adjacent mines, WebMines shows you where
the closest cells with adjacent mines are. When you click on a cell that
already shows a number of mines, WebMines expands for you the area of known
cells. This will become immediately clear when you try it out.
Whenever you identify a cell that contains a mine, you can flag it by
shift-clicking or right-clicking on it. Every time you do so, WebMines
decreases the mine counter, regardless of whether the cell you have flagged
actually hides a mine or not.
The game ends when you have correctly identified all the mines or when you
step on one of them. To start a new game, click on the smiley.
The application forces the number of rows to be between 1 and 32 and the
number of columns between 7 and 60. It also adjusts the number of mines
to keep the ratio between number of cells and number of mines to be between
3 and 10. Note that the expert ratio is 4.85, the intermediate ratio is 6.40,
and the beginner ratio is 8.00 .
Also note that the clock keeps running when you minimise/iconify the browser
window (I know... I should suspend the timer...)