12. Glossary¶
Term |
Definition |
|---|---|
Field |
A single minesweeper grid, consisting of a header (row and column counts) and a 2D grid of cells. |
Cell |
A single position in the grid, containing either a mine ( |
Mine |
A cell marked with |
Safe cell |
A cell marked with |
Adjacent mine count |
The number of mines in the 8 neighbouring cells (horizontal, vertical, diagonal) of a given cell. |
Header |
The line preceding a field’s grid rows, formatted as |
Terminator |
The input line |
Input Parser |
The component responsible for reading stdin and producing a list of |
Field Processor |
The component responsible for computing adjacent mine counts for all safe cells in a field. |
Output Formatter |
The component responsible for printing annotated fields to stdout in the required format. |
Pipeline |
The sequential flow: Input Parser → Field Processor → Output Formatter. |