Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 883 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 883 Bytes

C++ Minesweeper

demo

This is a simple implementation of the classic Minesweeper game using the SDL2 library for graphics rendering. The game features grid-based gameplay, and random mine placement.

Features

  • Customizable Grid: Easily adjust grid size and spacing by changing the difficulty. difficulty
  • Dynamic Rendering: Real-time updates with SDL2 rendering.
  • Classic Minesweeper Logic: Neighbor detection, mine count visualization, flagging and recursively reveals neighbours. game
  • Game loop: When you lose or win you can directly start a new game. win

Requirements

  • SDL2 Library: Make sure SDL2 is installed on your system.
  • C++ Compiler: A modern C++ compiler supporting C++11 or later.

How to play

  • Left mouse button to reveal square.
  • ESC to open difficulty menu.