https://github.com/akuli/curses-minesweeper
Minesweeper game written in curses with zig
https://github.com/akuli/curses-minesweeper
Last synced: 5 months ago
JSON representation
Minesweeper game written in curses with zig
- Host: GitHub
- URL: https://github.com/akuli/curses-minesweeper
- Owner: Akuli
- License: mit
- Created: 2019-03-15T19:25:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T17:40:43.000Z (11 months ago)
- Last Synced: 2025-05-06T21:41:14.683Z (8 months ago)
- Language: Zig
- Size: 62.5 KB
- Stars: 20
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curses-minesweeper
This is a minesweeper game written with [Zig](https://github.com/ziglang/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
Then [download zig 0.13.0](https://ziglang.org/download/) 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/curses-minesweeper
Add `--help` for more options.
## FAQ
### I can't get it to work!
Create an issue. I'll try to help.
### Why did you write a minesweeper game?
Because it's fun.
### Does it work on Windows?
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.