# Minesweeper... in the terminal! Minesweeper is a puzzle game where the objective is to clear a rectangular board without detonating any hidden mines. ## How to Play The board consists of hidden cells, some containing mines. Uncover a cell by selecting its coordinates. If it's a mine, you lose. If it's safe, a number appears indicating how many mines are adjacent to that cell. **Use logic to deduce mine locations and mark them with flags.** Marking all mines with flags isn't necessary, but helps. ### Clear all non-mine cells to win! ## Controls Arrows to move. Z to reveal. X to flag. C to chord. R to restart. P to pause. Q to quit. You can't chord if the number isn't equal to the number of flags it's near. You can't see the board if you're paused to (help) prevent cheating. You can't flag already revealed cells. ## Compilation Make a `build` directory and enter it: ```sh mkdir build cd build ``` Make build files: ```sh cmake .. ``` Compile and install: ```sh make -j${nproc} make install ```