Welcome to Minesweeper JS, a classic and enhanced version of the famous minesweeping game, developed 100% in JavaScript!
This repository contains an implementation of the classic Minesweeper using modern JavaScript (ES6+), HTML, and CSS.
The game is designed to be:
- Easy to play and understand.
- Clear and modular code to help learn web programming.
- A solid base to add features and customize as you like.
- Dynamic board (configurable size and number of mines).
- Interaction with left clicks (reveal cell) and right clicks (mark flag).
- Complete logic to count neighboring mines and recursively reveal empty spaces.
- State control: win, lose, and game in progress.
- Responsive design with a simple but effective look.
- JavaScript (ES6+ with arrow functions, let/const, events, and DOM manipulation).
- HTML5 for structure.
- CSS3 for styles and simple animations.
You can try the game live here:
https://matefernandezcc.github.io/minesweeper
Or clone the repository:
git clone https://github.com/matefernandezcc/minesweeper.git