Terminal Minesweeper in C99 — a bit-flag cell model, flood-fill reveal and CUT unit tests. University homework, done cleanly.
Each cell is one byte of bit flags; reveals flood with a queue rather than recursion; the game logic is pinned by CUT unit tests.