This is a minesweeper game written with Zig using curses.
If you have apt, you can install most of the dependencies and download the code like this:
$ sudo apt install git wget libncurses5-dev libncursesw5-dev gcc
$ git clone https://github.com/Akuli/curses-minesweeper
$ cd curses-minesweeper
$ git submodule init
$ git submodule update
Then download zig 0.9.0 and move it to
the curses-minesweeper
directory, and run this:
$ tar xf zig-linux-SOMETHING.tar.xz (use autocompletion)
$ mv zig-linux-SOMETHING zig (use autocompletion)
Now you can compile and run the project.
$ zig/zig build
Run the game:
$ zig-out/bin/cursesminesweeper
Add --help
for more options.
Create an issue. I'll try to help.
Because it's fun.
No, but Windows comes with a minesweeper. Windows command prompt and powershell are kind of awful anyway, and you probably want to use GUI applications instead of them whenever possible.