# Mine Sweep

> Clear the minefield in this logic puzzle with Easy, Medium and Hard grids and no-guess boards. Flag mines and reveal safe cells; the first tap is always safe.

- Open the tool: https://overtooled.com/mine-sweep
- Category: Games
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: mine, sweep, game, puzzle, mines, classic, grid

## In short

Clear the minefield online with easy, medium, and hard grids.

## Overview

Minesweeper with boards that can always be solved by logic alone. Reveal every cell that is not a mine; each revealed number tells how many of its 8 neighbours are mines. The board is generated on your first tap, so the first tap always opens an area.

## Features

- Three sizes: Easy 9x9 with 10 mines, Medium 16x16 with 40 mines, Hard 16x30 with 99 mines
- No-guess boards: on the first tap a Web Worker generates random layouts (none within the 3x3 area around the tap) and keeps the first one a built-in solver can clear with single-cell and subset deductions, trying up to 500 layouts
- Chording: tap a revealed number whose adjacent flag count matches it to reveal all its other neighbours
- Flag by long-press (350ms, with a filling ring), right-click, the Flag mode toggle or the F key
- Flag feedback that shows past the finger: a badge pops above the cell and the mines-left counter bumps; Android also vibrates
- On a loss all mines are shown, the mine you hit is red and wrong flags are faded; on a win every mine is flagged
- Large boards turn sideways on a portrait phone and pan inside their own box when cells would be too small
- Full keyboard play with arrow-key focus between cells
- Optional stopwatch (off by default; "Show stopwatch" under the board): counts up from the first reveal, pauses while the app is in the background or the game is left via Exit on a phone, stops at the end and shows the final time on the result card; keeps a best time per difficulty for games played with it on

## How to use it

1. Pick Easy, Medium or Hard.
2. Tap or click any cell to start; the board is built around that cell.
3. Use the numbers to deduce mines and flag them (long-press, right-click, Flag mode or F).
4. Reveal every safe cell to win; New starts a fresh board.

## Inputs

- Tap / left-click: reveal a cell, or chord a satisfied number
- Long-press / right-click: flag or unflag
- Flag button: makes taps place flags instead of revealing
- Keyboard: arrow keys move between cells, Enter/Space reveal, F flags

## Outputs

- Mines left (mines minus flags placed)
- Elapsed time, when the stopwatch is on
- Win / loss result card with a View board option (and the final time and best time when the stopwatch is on)

## Limits and notes

- Best times are only recorded for wins with the stopwatch on (overtooled:mine-sweep:best-times); the stopwatch setting is overtooled:mine-sweep:stopwatch
- If no solvable layout is found in 500 tries a plain random board is used (still mine-free around the first tap)
- A wrong flag on a cell that gets revealed by a flood fill is removed automatically
- Only the chosen difficulty (overtooled:mine-sweep:difficulty), the stopwatch setting and best times are saved; a game in progress is not

## Keyboard shortcuts

- Arrow keys: move between cells
- Enter / Space: reveal the focused cell
- F: flag the focused cell
- Esc: hide the result card to view the board

## Questions and answers

### How does Mine Sweep work?

The board is generated on your first click, in a Web Worker. It creates random layouts with no mines in the 3x3 area around that click and keeps the first one a built-in solver can clear by logic alone (single-cell deductions, then subset deductions between neighbouring numbers). It tries up to 500 layouts before falling back to a plain random board. Revealing an empty cell flood-fills its empty neighbours.

### What are the controls?

Click or tap a cell to reveal it. To flag a mine, long-press it, right-click it, press F, or switch on the Flag button so taps place flags. Tapping a revealed number that has all its flags placed reveals its other neighbours. Arrow keys move between cells and Enter reveals.

### What grid sizes are available?

Easy (9x9 with 10 mines), Medium (16x16 with 40 mines) and Hard (16x30 with 99 mines). On a portrait phone the Hard board turns on its side to fit.

### Is there a timer?

Only if you want one. Turn on "Show stopwatch" under the board: it counts up from your first reveal, pauses while the app is in the background, stops when the game ends and shows your time on the result card. With it on, your best time for each difficulty is saved in your browser.

### Is the first click always safe?

Yes. The mine placement ensures your first click always reveals a safe cell, so you never lose on the first move. This is the standard behavior in modern mine sweep implementations.

## Related tools

- [Block Drop](https://overtooled.com/block-drop.md): Stack falling tetrominoes to clear rows with keyboard controls and high scores
- [Asteroids](https://overtooled.com/asteroids.md): Play the classic Asteroids space shooter with retro vector graphics
- [Code Breaker](https://overtooled.com/code-breaker.md): Crack the hidden color code in limited guesses with logical deduction
- [Farkle](https://overtooled.com/farkle.md): Push your luck in this classic dice game -- roll, score, and bank before you farkle

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
