Minesweeper-like text game, where the player tries to find all mines on the minefield as fast as possible without accidentally detonating them.
Find a file
Grzesiek11 a5667f2687
Undo unrelated code changes
ac5c5ea84a accidentally changed more than
necessary.
2025-12-10 10:01:27 +01:00
docs Use the name "mark" for the "question" cells 2025-12-08 12:57:50 +01:00
src Undo unrelated code changes 2025-12-10 10:01:27 +01:00
.gitignore Move project to C++20 modules 2025-11-28 14:11:35 +01:00
CMakeLists.txt Set VS_STARTUP_PROJECT properly 2025-12-10 09:44:22 +01:00
LICENSE Initial commit 2025-11-21 01:45:35 +01:00
README.md Update README 2025-12-03 00:56:06 +01:00

mines

Minesweeper-like text game, where the player tries to find all mines on the minefield as fast as possible without accidentally detonating them.

Building

Requirements:

  • CMake 3.28+

    CMake currently only supports Ninja and VS generators for C++20 modules.

  • C++ compiler with C++23 support

    Tested with clang 22.

Example build commands with Ninja generator:

cmake -B build -GNinja
cmake --build build

This produces an executable mines in build directory.

Running

Start a game with default parameters:

mines

Show help:

mines -h

Start a game as "Me" with a 40x20 minefield populated with 50 mines:

mines -i Me -x 40 -y 20 -m 50

Copyright © 2025 Grzesiek11

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.