Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MineSweeper

A browser-based implementation of the classic Minesweeper game, built with HTML, CSS and JavaScript.

About this project

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.

Features

  • Classic Minesweeper gameplay (reveal tiles, place flags, win/lose conditions)
  • Customizable difficulty
  • Timer and mine counter
  • Simple, responsive UI built with HTML/CSS

Tech stack

  • JavaScript
  • HTML
  • CSS

How to run

No build step is required — the game runs in any modern browser.

  • moshesilver.github.io/MineSweeper/

How to play

  • 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.

Known limitations

  • 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.

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages