Skip to content

Custom Minesweeper game for Windows built with C++ and the WinAPI.

License

Notifications You must be signed in to change notification settings

MarcinSkrzypek/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

This is a custom implementation of the classic Minesweeper game for Windows, built with C++ and the WinAPI for graphical interface rendering.

GitHub release

Features

  • Classic Minesweeper gameplay.
  • Customizable difficulty levels (Beginner, Intermediate, Expert and Custom).
  • Graphical user interface using WinAPI.
  • No external dependencies, pure WinAPI.
  • Timer and mine counter.

Showcase

Game view

Getting Started

Prerequisites

  • Windows OS.
  • MinGW or any compatible GCC for Windows.
  • CMake (version 3.10 or newer).

Building the Project

  1. Clone the repository to your local machine.

    git clone https://github.com/MarcinSkrzypek/minesweeper.git
    
  2. Navigate to the build directory in the project.

    cd minesweeper/build
    
  3. Run CMake to configure the project and generate a Makefile.

    cmake -G "MinGW Makefiles" ..
    
  4. Build the project with MinGW Make.

    mingw32-make
    
  5. Run the game executable.

    ../minesweeper.exe
    

Controls

  • Left-click on a cell to reveal it.
  • Right-click on a cell to mark it with "!" or "?".
  • Reset the game or change difficulty through the game menu.

License

This project is licensed under the MIT License. See LICENSE for more details.

Used technologies

C++17 CMake