Light version of Microsoft Minesweeper for Linux. Some interesting implementation moments are described here.
- Required dependencies
- Build and install
- Launch
- Launch with default configuration
- Launch with custom configuration
- Classic style
- RD style
- SDL2
- SDL2_image
# E.g.: installation for Fedora 24
$ sudo dnf install SDL2 SDL2-devel SDL2_image SDL2_image-devel
minesweeper]$ mkdir build && cd build
minesweeper]$ cmake ../
minesweeper]$ make
minesweeper]$ make install
# after completion minesweeper should be installed in minesweeper/release folder
release]$ ./minesweeper [path to config]
# default configuration
release]$ cat resources/classic.conf
mines=99
field_rows=16
field_cols=30
sprite_img=resources/classic.png
sprite_txt=resources/classic.txt
# launch
release]$ ./minesweeper
# custom configuration
release]$ cat resources/classic.conf
mines=10
field_rows=10
field_cols=10
sprite_img=resources/classic.png
sprite_txt=resources/classic.txt
# launch
release]$ ./minesweeper resources/classic.conf
# custom configuration
release]$ cat resources/rd.conf
mines=99
field_rows=16
field_cols=30
sprite_img=resources/rd.png
sprite_txt=resources/rd.txt
# launch
release]$ ./minesweeper resources/rd.conf
# custom configuration
release]$ cat resources/rd.conf
mines=7
field_rows=7
field_cols=14
sprite_img=resources/rd.png
sprite_txt=resources/rd.txt
# launch
release]$ ./minesweeper resources/rd.conf