An accurate, lightweight, cross-platform, open-source re-implementation of Windows Minesweeper, written in C and built on SDL.
SDL2 must be installed on your system first before building. Then just run make
in the root directory. Use make debug
to compile with debug symbols, or make prod
to compile with optimization.
Mouse:
Left: Reveal a tile
Right: Place a flag or (?) marker
Middle / Shift+Left / Left+Right: Clear surrounding tiles
Keyboard:
r: Reset the game
b: Choose beginner difficulty (before first click)
i: Choose intermediate difficulty (before first click)
e: Choose expert difficulty (before first click)
?: Toggle (?) marks
-: Scale window down
+: Scale window up
Esc: Stop timer
- Allow custom field size and mine count
- Persist options
- Add persistent high scores
- Add WRAPFIELD mode
- Use lower bit depth for textures
- Replace rand() with a better RNG to avoid board cycling