• Stars
    star
    17
  • Rank 1,257,181 (Top 25 %)
  • Language
    Zig
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Minesweeper game written in curses with zig

curses-minesweeper

This is a minesweeper game written with Zig using curses.

screenshot

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.

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.

More Repositories

1

python-tutorial

A Python 3 programming tutorial for beginners.
Python
1,354
star
2

porcupine

A decent editor written in tkinter
Python
157
star
3

tkinter-tutorial

Tkinter tutorial for beginners.
Python
120
star
4

teek

Simpler alternative to tkinter.
Python
31
star
5

math-tutorial

Practical math tutorial for programmers.
Python
25
star
6

jou

Yet another programming language
Python
11
star
7

mantaray

An IRC client written in Python with Tkinter.
Python
11
star
8

git-guide

A practical guide to using git with github that hopefully doesn't suck.
Mako
7
star
9

classtree

A program that prints a tree of classes in a Python module.
Python
6
star
10

odotdot

Funny programming language
C
6
star
11

asda

My attempt at making a statically typed programming language
Python
5
star
12

oomph

Yet another attempt at making a usable programming language
Python
4
star
13

import-that

Bad Python practice tutorial.
4
star
14

py-tree-sitter-builds

Binary wheels for using py-tree-sitter without a C compiler
Python
4
star
15

derivater

Simple symbolic calculation library for Python
Python
3
star
16

math-derivations

Derivations and proofs of math things
Python
3
star
17

BananaGUI

Simple wrapper for popular Python GUI toolkits.
Python
3
star
18

triotk

Tiny module for using Trio with Tkinter
Python
2
star
19

stupid-c-repl

Stupid REPL for C and C++
Python
2
star
20

music-theory

A website that explains music theory using mathematics (Finnish)
Python
2
star
21

weird-language

weird programming language
Python
1
star
22

the-simple-noteprogram

Simple note-taking program written in Python 3 with GTK+ 3.
Python
1
star
23

mathpaste-gtk

Gtk program for using mathpaste
Python
1
star
24

happy-birthday

Happy birthday zaab :)
Python
1
star
25

snake

My version of the classic snake game. It's not as boring as you think it is...
Python
1
star
26

curses-klondike

Terminal klondike solitaire game
C++
1
star
27

mittari

Analog CPU and RAM usage meters for my computer
Python
1
star
28

gtk-reminder

Simple reminding program written in C using GTK+ 3.
C
1
star
29

potti

IRC bot that lets users run arbitrary Python code
Python
1
star
30

catris

The classic game of falling blocks, but with online multiplayer
Rust
1
star