To compile you'll need the gnat compiler and toolchain, as well as make. The oldest known compatible language version is Ada 2012.
# install gnat for your system
# sudo pacman -S gcc-ada
# sudo apt install gnat
git clone https://github.com/ImFstAsFckBoi/Ada-Minesweeper
cd Ada-Minesweeper
make
./mine
Install to the system, to be accessible in any directory.
There is a PKGBUILD
script for Arch based distros.
git clone https://github.com/ImFstAsFckBoi/Ada-Minesweeper
cd Ada-Minesweeper
makepkg -si # installs to /usr/local/bin
For other distros you will have to compile and install manually.
git clone https://github.com/ImFstAsFckBoi/Ada-Minesweeper
cd Ada-Minesweeper
make install # installs to ~/.local/bin
w, a, s, d or ⬆️, ⬇️, ⬅️, ➡️ | Move cursor |
---|---|
SPACE | Open cell |
f | Flag cell |
q | Quit |
The file prep.def can be used to customize some of the parameters the program is compiled with. After editing you must recompile to see the changes. You can change cursor style, board size, etc. The file follows standard Ada syntax. Example:
BOARD_WIDTH := 10
CURSOR_RIGHT := "{"