Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/programmingrainbow/minesweeper-c-sdl2

Minesweeper with 8 themes, 5 sizes and 4 difficulty levels. Written in C and SDL2
https://github.com/programmingrainbow/minesweeper-c-sdl2

c minesweeper sdl sdl2

Last synced: 4 days ago
JSON representation

Minesweeper with 8 themes, 5 sizes and 4 difficulty levels. Written in C and SDL2

Awesome Lists containing this project

README

        

![Screenshot](screenshot.png)

# Minesweeper (C - SDL2)
Uncover all non mine/flower tiles to win. Left click on a square to uncover it. Right click on a tile to mark it as a mine or with a question mark. These marks are purely for the user keep track of mines or unknown squares. They prevent that tile being uncovered by a left click. The top left number is the number of mines on the board minus the number of flags placed. The top right number is the elapsed time. Any numbered square holds the number of how many mines are immediately touching that square. The first turn may not end the game in a win or lose situation.

# ArchLinux instructions.
You will need to make sure SDL2 and SDL2_image is installed.
```
sudo pacman -S --needed base-devel sdl2 sdl2_image
cd
git clone https://github.com/ProgrammingRainbow/Minesweeper-C-SDL2
cd Minesweeper-C-SDL2
make run
```
The Makefile builds debug by default. It also supports these commands:
```
make rebuild
make clean
make release
SRC_DIR=Video8 make rebuild run
```
# Controls
1 through 8 - Change the theme of the game.\
Q, W, E, R, T - Change size from Tiny to Huge.\
A, S, D, F - Change difficulty from Easy to Very Hard\
Left Click on tile to uncover.\
Left Clock on Face to reset.\
Right Click on tile to mark.\
B - Changes size. \
N - Reset. \
Escape - Quits