Your goal is to reveal all the tiles that don't have a mine. Revealed tiles that are adjacent to mines will have a number. This number indicates how many mines are in adjacent tiles.
- left mouse button: reveals a tile
- right mouse button: adds/removes a flag from a tile, preventing it from being revealed
- left + right mouse buttons (on a revealed tile): reveales all adjacent tiles, only if enough flags are placed. This function prevents acidental mine hits.
You can download the binaries here
- Docker: Install documentation here
On a terminal, from the root of the repo, run
sh cli/build.sh [OPTIONS]
Options:
-b, --build: will build the docker image used to compile the code
--version: version of the build. Will be used to name the binary file.
The binaries will be available on the directory bin/
-
Make sure you have the latest version of golang installed
-
Install Fyne's dependencies for your OS. Consult them here
On a terminal, from the root of the repo, run
go run ./main.go
On a terminal, from the root of the repo, run
sh cli/bundle.sh
The script will catch all files inside assets/images/
On a terminal, from the root of the repo, run
sh cli/lint.sh [OPTIONS]
Options:
-b, --build: will build the docker image used to run the linters
On a terminal, from the root of the repo, run
sh cli/test.sh [OPTIONS] [dir1 dir2 ...]
Options:
-b, --build: will build the docker image used to run the tests
-w, --watch: run the tests in watch mode
dir1 dir2 ...: the directories to look for test files. Defaults to all subdirectories of internal/
On a terminal, from the root of the repo, run
sh cli/coverage.sh [OPTIONS]
Options:
-b, --build: will build the docker image used to run the tests
The output will be available on the directory coverage/