💣 Minesweeper — Terminal Edition (C)

A fully playable Minesweeper clone written in pure C, designed to run in any terminal. No external libraries required — just the C standard library.


🎮 Inspiration

We wanted to recreate a classic game using the most minimal setup possible—just C and the terminal. Minesweeper is perfect for this because it relies entirely on logic, recursion, and grid traversal rather than graphics.


🧩 What it does

  • Fully playable Minesweeper in the terminal
  • Random mine generation with safe first-click logic
  • Recursive reveal (flood-fill) for empty cells
  • Flagging system for marking suspected mines
  • Win/loss detection with real-time board updates

🛠️ How we built it

Data Modeling

Each cell tracks:

  • Whether it contains a mine
  • Number of adjacent mines
  • Current state (hidden, revealed, flagged)

Built With

Share this project:

Updates