A browser-based implementation of the classic Minesweeper game, built with HTML, CSS and JavaScript.
This project was one of my first programming efforts. I built it while I was just getting started learning JavaScript — at the time I had virtually no prior experience with the language. A more experienced friend helped guide me through parts of the implementation. The result is a functional Minesweeper clone that reflects what I learned during that early stage.
Because this was an early learning project, the code is focused on clarity and learning rather than advanced architecture or production-level optimizations.
- Classic Minesweeper gameplay (reveal tiles, place flags, win/lose conditions)
- Customizable difficulty
- Timer and mine counter
- Simple, responsive UI built with HTML/CSS
- JavaScript
- HTML
- CSS
No build step is required — the game runs in any modern browser.
- moshesilver.github.io/MineSweeper/
- Left-click (or tap) a covered tile to reveal it.
- Right-click (or long-press / use the flag button on touch devices) to place or remove a flag.
- Left and Right click to try revealing all adjacents non-flagged tiles.
- Numbers indicate how many mines are adjacent to that tile.
- Clear all non-mine tiles to win. Revealing a mine ends the game.
- This project was created while I was still learning JavaScript; the codebase may contain patterns or approaches I would improve today.
- There may be edge-case bugs or missing accessibility features.
- The difficulty selector is not opperational yet.