The Timer class is an extention of active object. With each possible component in a cell (mine, flag, neighbor count, white backdrop for neighbor countĪnd exploded backdrop for exploded cell). The class also takes care of all the formatting (centering, positioning) required Mines in a non-mine cell, whether the cell has been flagged, whether the cell has been revealed, orĮxploded etc. Includes aspects such as whether the cell contains a mine, the number of neighbors that do contain Further, students played the game Minesweeper, and had one-on-one assistance during part of the process. Students also went through a simulation program about the game. The GridCell class stores and remembers information about an individual cell. Minesweeper determines information presented in the game. With more randomly placed mines (if player chooses harder levels). The Grid constructor takes a int level (level of difficulty that player chooses)Īnd distributes this value throughout its methods to construct a larger, more challenging grid How many mines have been flagged, whether the game is still in session or whether player has This classĬontains knowledge of the state of the grid such as how many mines are present, how many flags, The grid as well as setting all the non-mine cells with a count of neighboring mines. Grid class is in charge of placing random mines across The Grid class constructs a grid of GridCells. MineSweeper also displaysĪnd activates the New Game button (swing component) and also displays, formats and This includes, distinguishing between a right and left click and delegating theseĮvents to the Grid class, which handles them accordingly. The main responsibliity of the MineSweeper class is to define event handlers. The location of most mines is discovered through a logical process, but some require. The goal of Minesweeper Versus is to uncover more bombs than your opponent.
Minesweeper game adult free#
It's a modern take on the classic free minesweeper game, for two players. This game contains three different levels - Easy, Medium and Hard - with a built-in timer at the start of a new game. Minesweeper Versus requires tactics and strategy to uncover hidden mines before your opponent beats you to it. MineSweeper is a simplified version of the commonly known Minesweeper game.