Minesweeper-like text game, where the player tries to find all mines on the minefield as fast as possible without accidentally detonating them.
  • C++ 97.9%
  • CMake 2.1%
Find a file
Grzesiek11 a2b2e58711
Fix input handling in cases of low performance
Low performance could have caused timeouts to be negative, which broke
when the performance was really low.
2026-04-19 01:06:27 +02:00
docs Update controls documentation 2026-04-13 19:53:18 +02:00
src Fix input handling in cases of low performance 2026-04-19 01:06:27 +02:00
.gitignore Move project to C++20 modules 2025-11-28 14:11:35 +01:00
CMakeLists.txt Use platform directories for storing data 2026-03-19 12:36:28 +01:00
LICENSE Initial commit 2025-11-21 01:45:35 +01:00
README.md Update controls documentation 2026-04-13 19:53:18 +02: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.

Online documentation
Build instructions

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

Controls

Game

  • Left arrow: Move cursor left.
  • Down arrow: Move cursor down.
  • Up arrow: Move cursor up.
  • Right arrow: Move cursor right.
  • Space: Uncover cell.
  • f: Flag/mark/reset cell. Skips marking if marks are disabled.
  • Escape: Open menu.
  • q: Quit the game.

Menu

  • Down arrow: Move selection down.
  • Up arrow: Move selection up.
  • Space: Confirm selected option.
Options
  • New game: Start a new game.
  • Edit game: Start a new game with changed parameters.
  • Leaderboard: View leaderboard.
  • Change player name: Change current player name.
  • Disable marks / Enable marks: Toggle marks.
  • Quit: Quit the game.
  • Back: Exit from the menu.

Copyright © 2025-2026 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/.