Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrglaster/js-minesweeper-game
Minesweeper made with pure JS, HTML & CSS
https://github.com/mrglaster/js-minesweeper-game
css html html5 javascript javascript-game js onepageapp purejs
Last synced: about 1 month ago
JSON representation
Minesweeper made with pure JS, HTML & CSS
- Host: GitHub
- URL: https://github.com/mrglaster/js-minesweeper-game
- Owner: mrglaster
- Created: 2022-11-09T15:54:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T11:51:12.000Z (about 2 years ago)
- Last Synced: 2023-04-20T10:05:53.332Z (over 1 year ago)
- Topics: css, html, html5, javascript, javascript-game, js, onepageapp, purejs
- Language: JavaScript
- Homepage:
- Size: 179 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## JavaScript Minesweeper game
Minesweeper developed with pure JavaScript.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.
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. Flagged cells are still considered unopened, and a player can click on them to open them. 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.
## Screenshots
![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)