Author: EbrahemWebPrice: $23
This game was made without the use of any additional libraries or software.
Work on all browser and mobile that support HTML5.
Mouse and touch control
Optimized for all mobile devices and web.
Auto fit the screen.
Full-screen mode is available.
html file to display the game.
js files of all the code in the game(comments in the code included).
images of each object in the game.
css style for the body and the <canvas>.
To upload the game to your website:
Upload all the files in Minesweeper folder to your domain root in the same place
About the game:
Minesweeper is a single-player puzzle video game released for the first time in windows.
The objective of the game is to clear a rectangular board containing hidden “mines” or bombs without detonating any of them, with help from clues about the number of neighbouring mines in each field.
In Minesweeper, mines (that resemble naval mines in the classic theme) are scattered throughout a board, which is divided into cells. Cells have three states: uncovered, covered and flagged. A covered cell is blank and clickable, while an uncovered cell is exposed. Flagged cells are those marked by the player to indicate a potential mine location.
A player left-clicks a cell to uncover it. If a player uncovers a mined cell, the game ends, as there is only 1 life per game. Otherwise, the uncovered cell displays either a number, indicating the number of mines diagonally and/or adjacent to it, or a blank tile (or “0”), and all adjacent non-mined cells will automatically be uncovered. Right-clicking on a cell will flag it, causing a flag to appear on it. Flagged cells are still considered covered, and a player can click on them to uncover them, although typically they must first be unflagged with an additional right-click.
To win the game, players must uncover all non-mine cells, at which point, the timer is stopped. Flagging all the mined cells is not required.
On mobile, there is no right-click, so instead of right-click, you can checked the flag button top right the screen and that will put/remove flag instead of uncover cell.