Skip to content

Commit a242c7f

Browse files
authored
Create README.md
1 parent 12cad37 commit a242c7f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## JavaScript Minesweeper game
2+
Minesweeper made with clear JavaScript.
3+
4+
Minesweeper is a puzzle video game.In the game, mines (that resemble naval mines in the classic theme) are scattered throughout a board, which is divided into cells. Cells have three states: unopened, opened and flagged. An unopened cell is blank and clickable, while an opened cell is exposed. Flagged cells are those marked by the player to indicate a potential mine location.
5+
6+
A player selects a cell to open it. If a player opens a mined cell, the game ends. Otherwise, the opened 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 opened. Players can also flag a cell, visualised by a flag being put on the location, to denote that they believe a mine to be in that place.[1] Flagged cells are still considered unopened, and a player can click on them to open them.[2] In some versions of the game when the number of adjacent mines is equal to the number of adjacent flagged cells, all adjacent non-flagged unopened cells will be opened, a process known as chording.
7+
8+
## Screenshots
9+
10+
![alt text](https://github.com/mrglaster/js-minesweeper-game/blob/main/screenshots/1.jpg?raw=True) ![alt text](https://github.com/mrglaster/js-minesweeper-game/blob/main/screenshots/2.jpg?raw=True)
11+

0 commit comments

Comments
 (0)