Deezzir / Minesweeper

Terminal Minesweeper with C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terminal Minesweeper

thumbnail

To note

Works with Linux and MacOS platforms. The program was not tested on Windows

Quick Start

$ make
$ ./mine

Optional Arguments

usage: mine [-r num] [-c num] [-p num]
       Optionally specify field [-r] rows and [-c] cols (20-128)
       Optionally specify [-p] percentage of mines (1-60) 

Controls

key description
w/↑,a/←,s/↓,d/→ Move cursor around
SPACE Open cell
f Flag/unflag cell
r Restart
q Quit

Debug Mode

Build with debug mode:

$ make DEBUG=1
$ ./mine
key description
p Peek behind closed cells

About

Terminal Minesweeper with C

License:MIT License


Languages

Language:C 99.0%Language:Makefile 1.0%