Skip to content

A simple, native, and cross platform Minesweeper game. Made with wxWidgets.

License

Notifications You must be signed in to change notification settings

DoodlesEpic/Minesweeper

Repository files navigation

Minesweeper

A simple, native, and cross-platform Minesweeper game made with wxWidgets.

Screenshot from 2023-03-13 20-26-55

Installation

Grab the executable appropriate for your system in the GitHub Releases page and start playing, no installation needed.

Development

This is application is developed using C++, the CMake build system, and the wxWidgets UI library. You must set up each one of those dependencies in your system, installation will differ for each operating system, so follow the guide on each website. The recommended compiler to use under Windows is MSVC, which can be installed through Visual Studio. Otherwise, you may also use Clang under MSYS2.

If you're using an Ubuntu-based distribution, you may install the needed dependencies using the following command:

sudo apt install build-essential git cmake libgtk-3-dev

To start development, clone the repository and run in the root folder:

git submodule update --init --recursive --progress
cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug

Compile wxWidgets and the application using:

cmake --build build -j8

You may omit -j8 if you are using Ninja or MSVC as a backend, since those will already use all available threads by default.

The final executable will be available under the build folder with the name Minesweeper and the appropriate file extension depending on your system.

License

This project is licensed under the GNU General Public License v3.0. Check the LICENSE file for more information.