Play Minesweeper
Interactive browser recreation
Minefield
Start a new game, then open safe cells and flag suspected mines.
Numbers show how many mines touch that cell. Empty areas open automatically.
Game activity
Game Log
- 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.
- Select a difficulty or configure a custom grid and mine count.
- Open a cell to reveal its value. The first opened cell is safe in the browser version.
- A number shows how many mines exist in the eight neighbouring cells.
- Empty cells automatically open their connected safe area.
- Use Flag mode or right-click to mark suspected mines.
- You win after every non-mine cell is open. Opening a mine ends the game.
- 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.