Play Minesweeper

Interactive browser recreation

Minefield

Open mode

Start a new game, then open safe cells and flag suspected mines.

Ready to explore

Select a difficulty and press Start New Game.

Numbers show how many mines touch that cell. Empty areas open automatically.

Game activity

Game Log

  1. Game activity will appear here.

About this project

Dynamic memory, linked queues, binary files, and browser interaction.

The original C++ coursework uses a dynamically allocated two-dimensional grid of Cell structures. Empty-area expansion is handled by a linked queue of pending cells rather than recursion.

The browser recreation preserves mine placement, neighbour counts, cascade opening, flags, timing, win detection, and save/load behavior inside the same coursework presentation system used by the other projects.

How to play

Open every safe cell without triggering a mine.

  1. Select a difficulty or configure a custom grid and mine count.
  2. Open a cell to reveal its value. The first opened cell is safe in the browser version.
  3. A number shows how many mines exist in the eight neighbouring cells.
  4. Empty cells automatically open their connected safe area.
  5. Use Flag mode or right-click to mark suspected mines.
  6. You win after every non-mine cell is open. Opening a mine ends the game.
  7. Save and Load use local browser storage.

Repository

Original C++ source and browser recreation in one project.

The repository preserves the submitted source, a conservatively corrected version, the web implementation, and feature-parity documentation.