A flag in Minesweeper is a player-controlled marker on a covered cell, not a guarantee that a mine is hidden beneath it. Minesweeper rules treat flags as personal notes that prevent accidental reveal until you are ready to act. The game never confirms during play whether your flag is correct; only the final round outcome reveals whether the marked cell really was a mine. According to the standard GNOME Mines ruleset documented at help.gnome.org/gnome-mines/rules.html, a flag marks a suspected mine but does not interact with the underlying mine data. On the keyboard-accessible Minesweeper tool, that same convention holds: pressing F toggles a flag, Space and Enter have no effect on a flagged cell, and at most ten flags can be on the board at once because that is the mine count for a 9 by 9 beginner layout. The flag is a memory aid and an input guard, not a proof. Treating flags as proof is the single most common mistake new players make, and it usually ends a run the moment a confidently flagged safe cell stays covered at game over.

What a Flag Actually Does in Minesweeper
A flag has exactly two functions on the Minesweeper tool. First, it tells you at a glance which covered cells you suspect contain mines. Second, it blocks keyboard reveals on that cell so you cannot trip a mine by accident while working elsewhere on the board. Nothing more.
The interface deliberately separates flagging from revealing. Pressing F on a covered, unflagged cell places the marker. Pressing F again on the same cell removes it. Revealed cells cannot be flagged at all. Space and Enter, which trigger reveals on plain covered cells, do nothing on flagged cells. That behavior is the safety belt built into the controls: the only way to reveal a flagged cell is to clear the flag first with F, then press Space or Enter.
The KDE KMines handbook describes the same convention in its How to Play section. The flag's job is to remember your deduction and to keep that cell untouched while you work out the rest of the field. The mine under a flag, if any, is not registered, displayed, or confirmed until the round resolves.
The Flag Cap and the 10-Mine Board
The Minesweeper beginner board is 9 rows by 9 columns, with 81 covered cells and exactly 10 mines. The tool mirrors that classic layout and pairs the mine count with a hard flag cap of 10. No more than ten flag marks can appear on the board at once, because a fully solved board would place exactly ten flags on ten mines.
That cap has a practical effect on how you play. If you place flags freely, you can run out of flags and still have mines left to identify. Conversely, a flag that turns out to be wrong still uses up your cap for the rest of the round. The cap encourages flagging based on the surrounding number clues rather than on guesses.
The flag cap also means that mistaken flags are not free. A flag on a safe cell is a wrong deduction, and a flag on a cell that was not a mine is also a wrong deduction. The round outcome is the only validator. A flagged cell that does not contain a mine at the end of the game stays flagged, but it costs you the win because you flagged a safe cell while leaving an unmarked mine elsewhere on the board.
Read the Numbers, Then Flag
Numbers are the only signal you have for deciding where to flag. A revealed number equals the exact count of mines among the cell's horizontal, vertical, and diagonal neighbors, up to eight neighbors for interior cells. If a 1 sits next to a single covered cell, the safe interpretation is that the covered cell is the one mine it is counting. If a 2 sits next to three covered cells, two of those three contain mines, but you do not yet know which two.
This is where flags become useful rather than authoritative. You can place a flag on a cell you believe is a mine, but until the round ends or until every adjacent mine count is satisfied, the flag is still a hypothesis. Two side-by-side 1 clues pointing at the same single covered cell is one of the strongest guarantees in Minesweeper: both 1s must point at the same mine, so a flag on that one cell is provably correct under the current layout. A 2 sitting next to four covered cells, by contrast, gives you no individual guarantee, only a count.
Treat flags as a way to remember your current best guess on each cell. When you place a flag, you are saying that you believe a mine is here, and you want the game to stop you from revealing it until you confirm with more numbers elsewhere. The cells you leave unflagged are not certified safe just because you did not mark them. They are simply uncovered by your current reasoning.
How to Place, Remove, and Trust Flags
- Load the Minesweeper board and let the cursor start on a safe cell. The tool wires the first cursor position to a guaranteed safe cell, so you can begin with Space or Enter without losing immediately.
- Press Space or Enter on the start cell, then read the number that appears or watch a zero expansion fan out automatically if you opened an empty patch.
- Move the cursor with the arrow keys until it rests on a covered cell that is your next suspected mine, based on the adjacent numbers you can already read.
- Press F once to place a flag. The cell now shows the flag marker, and Space or Enter will not reveal it.
- When a flag turns out to be wrong, return the cursor to that cell with the arrow keys and press F again to remove the mark. After the flag is removed, Space or Enter will reveal the cell.
- After each new reveal, re-check the adjacent numbered cells. If a number is exactly satisfied by your flags plus known revealed mines, you can leave the flag in place. If a number is over-flagged, remove the extra flag before pressing Space on any neighbor.
- If you suspect a mine but do not yet have proof, leave the cell uncovered rather than guessing. The board does not warn you that a flag is wrong — you find out only when the round ends.
- Use Restart any time to return to the fixed beginner board. The mine locations are identical on every restart, so your flags from a previous attempt can be checked against the real layout after the round ends.
Flag Behavior Quick Reference
With those mechanics in mind, here is a compact summary of how the Minesweeper tool handles flag state on every cell type. The interface deliberately keeps flagging separate from revealing, and this table is the most direct way to see that separation.
| Cell state | Flag status | Space or Enter | F key |
|---|---|---|---|
| Covered | Unflagged | Reveal the cell | Add a flag |
| Covered | Flagged | No effect (reveal blocked) | Remove the flag |
| Revealed | Cannot be flagged | No effect | No effect |
| 10 flags already placed | At the cap | Normal reveal on unflagged neighbors | |
| Round lost (mine revealed) | Frozen | No effect | No effect |
| Round won (all 71 safe cells) | Frozen | No effect | No effect |
This block is how the tool actually behaves on every cell, every round. It is the same behavior described in the public GNOME Mines ruleset and the KDE KMines handbook, applied to a fixed beginner layout.
What Happens at Round End
At round end, the flag status tells you what your deductions were, not what the board required. A flagged mine cell is correct if it really was a mine. An unflagged safe cell is correct if it does not conceal a mine. The Minesweeper status line reports the number of safe cells revealed and the number of flags placed. A win requires revealing all 71 safe cells, regardless of how many flags you placed. A loss freezes the board in the loss state the moment any non-flagged mine is revealed.
That loss state is the only validator of your flag accuracy. The game never warns you mid-round that a flag is wrong. You find out by watching the final layout after a mine ends the round or after every safe cell is cleared. Treat every flag as a working hypothesis you can revise after each reveal, and you will avoid the trap of trusting your own marks too much.
Why the Fixed Beginner Layout Matters for Flagging Practice
Because the Minesweeper tool uses a fixed, tested beginner board, you can repeat the same layout and check your flagging against the real mine locations. After a round ends, the actual mines do not move between restarts, so a flagged cell that contained a mine in one attempt will still be a mine the next time you Restart. That makes the tool unusually good for practicing flag logic: you can try a board, see where your flags were right or wrong, restart, and try again with the same hidden setup.
The core Minesweeper rules follow the public GNOME Mines guide and the KDE KMines handbook. A revealed number equals the count of neighboring mines. A safe cell with no adjacent mines opens as a blank and expands automatically. A flag protects the cell, but it does not prove a mine. Those rules, plus the fixed 9 by 9 board, give you a stable arena to train your flagging until it becomes automatic.